Skip to content

Usage #6

Answered by RondeSC
SK2H asked this question in Q&A
May 24, 2023 · 2 comments
Discussion options

You must be logged in to vote

An expected use would be within a game or for the playing of media. Either of which you would select an item periodically, not all at once. So first you would pick a ShuffleID (this would be an arbitrary pseudo random value which represents and dictates the shuffle). Then you get a "Shuffled Index" (si) each time you call the MillerShuffleAlgo function with a reference index (inx) which you would do each time a BlackJack player says "hit me" or a music stream listener needs the next song. For instances with MillerShuffle(inx++, mySID, myListSize);
The reference indexes would normally be used sequentially starting at 0 and going up to listsize-1, but don't have to be. You could iterate thr…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by RondeSC
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants