Jump to content

Sattolo cycle: Difference between revisions

Line 960:
=={{header|EasyLang}}==
<syntaxhighlight lang="text">
funcproc sattolo_cycle . a[] .
for i = len a[] downto 2
r = random (i - 1)
swap a[r] a[i]
.
.
arr[] = [ 1 2 3 ]
Line 970:
print arr[]
</syntaxhighlight>
 
 
=={{header|F_Sharp|F#}}==
2,044

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.