Uniform Random Number Algorithm

01232017, 07:25 PM
Post: #12




RE: Uniform Random Number Algorithm
Regarding the "secret" rand function, I think it's the only builtin random function that can be used to generate a list of random integers without repetition. This is also referred to as "selection without replacement".
Example: rand(10,0,9) > all ten singledigit integers, without any repeats, randomly shuffled. RANDINT doesn't do this; it allows repeats. N.B. If you want to use rand(a,b,c) in Home, then the "Change apparent integers into exact integers" setting (CAS Settings, page 1, 3rd line, right end) must be checked. <0ΙΈ0> Joe 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)