hi, i have a code snippet..
0 d1 = int(RND(1) * 10000 + 1)
this should produce a random number between 1 and 10,000.. how would I augment the snippet to produce a number between 1,000 and 10,000 i.e. a floor..-Eliott
rnd question
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: rnd question
a = RND(9000)+1000
-
- Posts: 6
- Joined: Wed Nov 05, 2014 6:22 pm
Re: rnd question
thanks..do I need a + 1 to loosen the upper bound, i.e. 9999 vs 10000
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: rnd question
Please refer to documentation on RND() function for details of its functionality.