mardi 16 août 2016

generating unique random numbers in Julia

This statement is often successful in generating 3 unique random numbers, but sometimes it only generates 2 unique numbers.

rand(1:length(matches), 3)

How can I rewrite this so I ensure 3 unique random numbers are always generated. (I am open to using other functions, etc, as well)

Thanks




Aucun commentaire:

Enregistrer un commentaire