Prowler Productions
  Dink Smallwood Forum
  Random Number Question....

Post New Topic  
profile | register | faq

Author Topic:   Random Number Question....
DMODER posted 07-31- 11:31 AM CT (US)   Click Here to See the Profile for DMODER   Click Here to Email DMODER  
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)     Click Here to See the Profile for WC  Click Here to Email WC     
You would have to do something like

int &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)     Click Here to See the Profile for DMODER  Click Here to Email DMODER     
Okay, that worked well, thanks for the help.

Post New Topic  Post Reply
Hop to:


Contact Us | Prowler Productions

Powered by: Ultimate Bulletin Board, Freeware Version 5.10a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.