Uniform Random Number Algorithm
01-23-2017, 07:25 PM
Post: #12
 Joe Horn Senior Member Posts: 2,001 Joined: Dec 2013
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-
 « Next Oldest | Next Newest »

 Messages In This Thread Uniform Random Number Algorithm - KeithB - 01-19-2017, 06:09 PM RE: Uniform Random Number Algorithm - Tim Wessman - 01-19-2017, 08:46 PM RE: Uniform Random Number Algorithm - KeithB - 01-19-2017, 10:06 PM RE: Uniform Random Number Algorithm - mark4flies - 01-22-2017, 02:33 AM RE: Uniform Random Number Algorithm - Tim Wessman - 01-22-2017, 06:12 PM RE: Uniform Random Number Algorithm - KeithB - 01-23-2017, 04:24 PM RE: Uniform Random Number Algorithm - Tim Wessman - 01-23-2017, 05:21 PM RE: Uniform Random Number Algorithm - KeithB - 01-23-2017, 05:24 PM RE: Uniform Random Number Algorithm - DrD - 01-23-2017, 06:02 PM RE: Uniform Random Number Algorithm - Tim Wessman - 01-23-2017, 06:33 PM RE: Uniform Random Number Algorithm - toml_12953 - 01-25-2017, 06:19 PM RE: Uniform Random Number Algorithm - parisse - 01-23-2017, 06:56 PM RE: Uniform Random Number Algorithm - mark4flies - 01-26-2017, 01:26 AM RE: Uniform Random Number Algorithm - Joe Horn - 01-23-2017 07:25 PM RE: Uniform Random Number Algorithm - Gerald H - 01-25-2017, 10:04 AM RE: Uniform Random Number Algorithm - KeithB - 01-25-2017, 03:41 PM RE: Uniform Random Number Algorithm - parisse - 01-26-2017, 07:49 AM