Sattolo cycle: Difference between revisions

m
 
(One intermediate revision by one other user not shown)
Line 959:
 
=={{header|EasyLang}}==
<syntaxhighlight lang="text">
proc sattolo_cycle . a[] .
for i = len a[] downto 2
r = randomrandint (i - 1)
swap a[r] a[i]
.
Line 2,436:
 
=={{header|Wren}}==
<syntaxhighlight lang="ecmascriptwren">import "random" for Random
 
var rand = Random.new()
Line 2,460:
 
{{out}}
Sample run:
<pre>
Original: []
2,060

edits