dimanche 7 août 2016

Generate a random permutation of the elements of a list Ocaml

i whant generate a random permutation of elements of a list, Example:

listString =  ["a"; "b"; "c"; "d"; "e"; "f"]

i whant something like:

result = ["a"; "e"; "f"; "b"; "d"; "c"]

but that result change in each call of the function.




Aucun commentaire:

Enregistrer un commentaire