julia> sample([1 2 3;4 5 6;7 8 9], 10)
10-element Array{Int64,1}:
1
3
7
3
8
6
3
7
5
4