El miércoles, 1 de junio de 2016, 14:24:01 (UTC-4), Michela Di Lullo escribió: > > How can I do to generate 6 *different* integer random numbers between 1 > and 14? >
This is known as "sampling without replacement" and is implemented in StatsBase.jl; documentation here: http://statsbasejl.readthedocs.io/en/latest/sampling.html Code: julia> using StatsBase julia> sample(1:14, 6, replace=false) 6-element Array{Int64,1}: 10 1 8 5 6 13