Random Latin squares: Difference between revisions

Latin Squares selected at random uniformly
(→‎{{header|jq}}: add algorithm for uniform distribution)
(Latin Squares selected at random uniformly)
Line 1,670:
</syntaxhighlight>
 
===uniformly-Latin Squares selected at random-latin-squares.jq uniformly===
<syntaxhighlight lang=sh>
# Include the utilities e.g. by
Line 1,727:
 
# If the input is a positive integer, $n, generate and print an $n x $n Latin Square.
# Otherwise,If simplyit is not number, echo it.
def printLatinSquare:
if type == "number"
Line 1,758:
stats(4;5760)
</syntaxhighlight>
 
{{output}}
<pre>
2,467

edits