![]() |
![]() ![]() ![]() ![]() ![]()
|
Author | Topic: Q: random numbers |
carlii |
![]() How do you make random numbers anyway? and I mean in QDK cuz I don't write script by hand. :) |
Alex |
![]() 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 |
![]() Thanx. BTW, you explain things very well Alex IMO. :) |
carlii |
![]() ...and how would one use this forumla/thingy directly in QDK? |
Alex |
![]() 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. |