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 / random number

Author
Message
ham freak 2002
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location:
Posted: 19th Jun 2004 17:31
hey, how do i creat a random number between 1 and 10?

im new but i wanna learn
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 19th Jun 2004 18:10 Edited at: 19th Jun 2004 18:11
randomize timer()

I as Integer

do
I=rnd(9)+1
print I
wait key
if spacekey()=1 then end
loop

Press any key to see the random numbers
Press Spacebar to exit


* DBP_NETLIB_v1.4 - w/VARIABLE WATCHER & CONSOLE! * Click Logo

Login to post a reply

Server time is: 2024-11-26 22:38:42
Your offset time is: 2024-11-26 22:38:42