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 functio
There is a sample function in StatsBase:
sample
using StatsBase a = sample(1:100, 10, replace = false)
This will draw a sample of length 10 from 1:100 without replacement.