Latin Squares in reduced form/Randomizing using Jacobson and Matthews’ Technique: Difference between revisions
Latin Squares in reduced form/Randomizing using Jacobson and Matthews’ Technique (view source)
Revision as of 16:20, 20 August 2019
, 4 years ago→{{header|F_Sharp|F#}}
(→{{header|F_Sharp|F#}}: i' j' and z' are idiotmatic F# but Rosettacode's syntax highlighting doesn't cope) |
|||
Line 19:
<lang fsharp>
// Jacobson and Matthews technique for generating Latin Squares. Nigel Galloway: August 5th., 2019
let R=let N=System.Random() in (fun n->N.Next(n))
let jmLS α X0=
let X0=Array2D.copy X0
|