Data update
This commit is contained in:
parent
5af6d93694
commit
796d366b97
455 changed files with 7413 additions and 1900 deletions
|
|
@ -1,9 +1,9 @@
|
|||
proc shuffle . a[] .
|
||||
for i = len a[] downto 2
|
||||
r = random i
|
||||
swap a[r] a[i]
|
||||
.
|
||||
for i = len a[] downto 2
|
||||
r = random i
|
||||
swap a[r] a[i]
|
||||
.
|
||||
.
|
||||
arr[] = [ 1 2 3 ]
|
||||
call shuffle arr[]
|
||||
shuffle arr[]
|
||||
print arr[]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue