Author
|
Topic: Random Number Question....
|
DMODER |
posted 07-31- 11:31 AM CT (US)
Basically, what I want to do is have a random number selected (a large range, say 1 out of 10,000) and then displayed on the screen. I think I understand how to use a "random" function, but I don't know how to get the number selected to be printed on the screen. Any help would be appreciated, thx.
|
WC
|
posted 07-31- 04:10 PM CT (US)
You would have to do something likeint &randomnum = random(10000, 0); say_xy("random num is &randomnum" 70, 80); NOTE: 70 is the x axis value, and y is the y axis value of where the text will be printed. You can change these to any value you wish. --WC |
DMODER
|
posted 07-31- 04:33 PM CT (US)
Okay, that worked well, thanks for the help. |