Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / How do i save a random number as a variable

Author
Message
vivi
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 30th Jan 2003 18:03
Ok with a little help i have a random number in a function
which i call up in the game





this is so far i want to save the random number as a variable so it can be saved for later. HOW?
WHY WAIT FOR GAMES.......MAKE THEM COME TO YOU
>>>>www.sharksoft.scripterz.com<<<<<
THANKS IN ADVANCE
David T
Retired Moderator
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 30th Jan 2003 19:17
function ran_num()
randomize timer()
number = rnd(99)+1
endfunction number


then call the function:

variable = ran_num()

Visit [url]www.lightning-systems.co.uk[/url]
You are the th person to view this signature.
Arrow
21
Years of Service
User Offline
Joined: 1st Jan 2003
Location: United States
Posted: 30th Jan 2003 19:17
Ramdomize Timer()

rnd(99) = ramdom_var

Am I a butterfly dreaming I'm a man?
Or a bowling ball dreaming I'm a plate of samishi?
Never assume that what you see or feel is real.

Login to post a reply

Server time is: 2024-06-17 14:11:01
Your offset time is: 2024-06-17 14:11:01