Post Reply 
Uniform Random Number Algorithm
01-23-2017, 07:25 PM
Post: #12
RE: Uniform Random Number Algorithm
Regarding the "secret" rand function, I think it's the only built-in 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 single-digit 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-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Uniform Random Number Algorithm - KeithB - 01-19-2017, 06:09 PM
RE: Uniform Random Number Algorithm - DrD - 01-23-2017, 06:02 PM
RE: Uniform Random Number Algorithm - Joe Horn - 01-23-2017 07:25 PM



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