How can I easily shuffle a list of tuples in sml? There doesn't seem to be any built in function to do so.
I assume I would need to use a random number generator but how you would move items in an list I have no idea.
How can I easily shuffle a list of tuples in sml? There doesn't seem to be any built in function to do so.
I assume I would need to use a random number generator but how you would move items in an list I have no idea.
Copyright © 2021 Jogjafile Inc.
This is for Moscow ML's Random library. For SML/NJ's Random library, you would have to adjust the random functions slightly.