Little explorations with HP calculators (no Prime)
|
04-04-2017, 06:26 PM
Post: #118
|
|||
|
|||
RE: Little explorations with the HP calculators
Joe Horn wrote an article (located here) where he discusses a couple of different methods of simulating die casts and shuffling.
I've used a similar technique a couple of times for randomizing a list. The commented code is included below. This is actually pretty much exactly what you describe as your "second idea", but hopefully the comments will help clarify what's going on with it: Code: ShufList The code is reasonably compact and fast. Performance is directly proportional to list size, and on my 50g can handle a list of 100 items in about 1 second. I'm sure someone else here can make a smaller/faster version, but this one has worked well for me. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)