Need Help with Numbers Please

JoshKahaneJoshKahane Member Posts: 470
edited November -1 in Working with GS (Mac)
Hi

Well me and my awful mathematical skills (I mean really quite atrocious) have ended me up in a conundrum again.

I am trying to have a button which makes a random number between 1 and 15 with 2 decimal places everything a button is pressed. I can only seem to make whole numbers.

I would appreciate any help, as always. Thanks.

Comments

  • JoshKahaneJoshKahane Member Posts: 470
    Ok I worked something out. To get a random number, I change attribute game.RandomNumber to Random(1,15000). Then do another change attribute game.RandomNumber to game.RandomNumber*0.001.

    This gives me a random number between 1 and 15. :) Not perfect but not too much trouble either.
Sign In or Register to comment.