Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Knuth-shuffle/M2000-Interpreter/knuth-shuffle.m2000
Normal file
9
Task/Knuth-shuffle/M2000-Interpreter/knuth-shuffle.m2000
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
Dim Base 0, A(3)
|
||||
For k=1 to 6 {
|
||||
A(0):=10,20, 30
|
||||
For i=len(A())-1 to 0 {
|
||||
let j=random(0,i)
|
||||
Swap a(i), a(j)
|
||||
}
|
||||
Print A()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue