Post Reply 
Little explorations with HP calculators (no Prime)
04-14-2017, 12:26 PM
Post: #184
RE: Little explorations with the HP calculators
(04-14-2017 08:53 AM)ttw Wrote:  If you use Joe Horn's code to shuffle the list, a single shuffle is completely random. A new shuffle would give you a new ordering. What his code does is place the any element into slot 1, then any remaining element into slot 2, etc.

That is a classic algorithm: Fisher-Yates shuffle

The RANDPERM function on the Prime does a similar thing.

John
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Little explorations with the HP calculators - John Keith - 04-14-2017 12:26 PM



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