Generate random numbers without repeating a value: Difference between revisions

Realize in F#
(Realize in F#)
Line 19:
<br><br>
 
=={{header|F_Sharp|F#}}==
<lang fsharp>
// Generate random numbers without repeating a value. Nigel Galloway: August 27th., 2021
MathNet.Numerics.Combinatorics.GeneratePermutation 20|>Array.map((+)1)|>Array.iter(printf "%d "); printfn ""
</lang>
{{out}}
<pre>
12 7 17 8 10 13 16 19 20 14 18 5 9 11 3 4 1 15 6 2
</pre>
=={{header|Go}}==
{{trans|Nim}}
2,172

edits