|
Axe Software Forums
Quest Developer Forum Q: random numbers
|
Author | Topic: Q: random numbers |
carlii |
posted 12-05-2002 12:01 BST
How do you make random numbers anyway? and I mean in QDK cuz I don't write script by hand. :) |
Alex |
posted 12-05-2002 13:10 BST
Instead of just writing a number, write $rand(a;b)$ instead, where a and b is your range of numbers. For example, when setting a numeric variable contents, setting the contents to: $rand(5;10)$ will choose a random number between 5 and 10. |
carlii |
posted 15-05-2002 12:07 BST
Thanx. BTW, you explain things very well Alex IMO. :) |
carlii |
posted 18-05-2002 12:44 BST
...and how would one use this forumla/thingy directly in QDK? |
Alex |
posted 18-05-2002 15:59 BST
You just write it in instead of a number, in any place you would type a number, for example in the "Set a numeric variable" script command. |