Hi all,
I would like to generate several random permutations of a list and be able to reproduce the sequence of random permutations by providing a seed. How can I do this?
thanks in advance
Hi all,
I would like to generate several random permutations of a list and be able to reproduce the sequence of random permutations by providing a seed. How can I do this?
thanks in advance
See set_random/1 for manipulating the random number generator state. random_permutation/2 does the other half of your problem.
thank you Jan. I will try this.