I am trying to create 10 element array of unique random integers. However I am unable to create array with unique values. Is there in Julia something like Pythons sample function ?
numbers = zeros(Array(Int64, 10))
rand!(1:100, numbers)
Thanks.
Aucun commentaire:
Enregistrer un commentaire