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.

DarkBASIC Discussion / specific random numbers

Author
Message
Wik
21
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 2nd Aug 2003 07:50
is there any way to have (for example) a random number be selected 37-100. im pretty sure on ti8x calculators u can do this but i tried the parameters


rnd(37,100)


and


rnd(37,100,1)
[/code

and it didn't work

thank u!
Intel P4 2.66 GHz (533MHz), Radeon 9000pro 60Gb hd...Self-Built
Wik
21
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 2nd Aug 2003 07:51
stupid code boxes!

just ignore the [/code and look at the commands in the middle of the spaces

Intel P4 2.66 GHz (533MHz), Radeon 9000pro 60Gb hd...Self-Built
Easily Confused
22
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 2nd Aug 2003 07:56
May I suggest:

http://www.darkbasicpro.com/apollo/view.php?t=13365&b=7

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
ReD_eYe
22
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 2nd Aug 2003 13:11
or just
rnd(63)+37

I have a website!!!
So go there: http://www.freewebs.com/darkb/index.htm
on second thought you probably shouldn't
Wik
21
Years of Service
User Offline
Joined: 21st May 2003
Location: CT, United States
Posted: 2nd Aug 2003 19:19
thank u

Intel P4 2.66 GHz (533MHz), Radeon 9000pro 60Gb hd...Self-Built

Login to post a reply

Server time is: 2025-05-20 17:39:10
Your offset time is: 2025-05-20 17:39:10