Random Latin squares: Difference between revisions
Content added Content deleted
m (→{{header|jq}}: give X2) |
m (→{{header|jq}}: shuffle) |
||
Line 1,561: | Line 1,561: | ||
'''Also works with gojq, the Go implementation of jq.''' |
'''Also works with gojq, the Go implementation of jq.''' |
||
The jq program presented in this section uses the Knuth |
The jq program presented in this section uses the Knuth shuffle for |
||
the first row, and then adds cells one-by-one by making a calculated |
the first row, and then adds cells one-by-one by making a calculated |
||
but fallible selection based on the values in its row and column, |
but fallible selection based on the values in its row and column, |