So obviously, it is a modification of the default sample one. I eventually want it to be able to generate an entire deck of unique cards for Caravan, and I don't know yet how to get it to add jokers (which would need to remove the suit information)
I have been having trouble finding out where to look up this information.
im going to delete that page in a day or two btw. i think it does what you want and is a next step in what you are learning as a second list with gears and moving parts in it
Thank you, I have tweaked the original, but I made the joker chance 1/27 and gave it option of with and without a trademark.
I guess the next step now is to figure out how to make it output multiple cards at once, and then how to have those outputs be unique. As the rules of caravan allow you to have multiple kings of spades, so long as they are from different decks.
i edited https://perchance.org/itwge1c592 to show multiple outputs. look in the bottom right box of HTML where, instead of one output there are now four separated by the HTML code for new line.
and i personally am a total noob but i think @[email protected], if anyone does, would know how to make outputs unique (hence me just tagging them here)
Here is my modification of your generator. We can use JavaScript's Set to create a unique array of items.
We first create the Set, and then we call the loop list.
First it checks if the Set's size is less than the aimed number of outputs. If yes, then it would add another item on the Set and return to loop. Otherwise, if the Set's Size is the same as the aimed number of outputs, then it would then return the Set to an Array, and use the Perchance .selectAll and .joinItems to format them.