Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Knuth-shuffle/OxygenBasic/knuth-shuffle.basic
Normal file
10
Task/Knuth-shuffle/OxygenBasic/knuth-shuffle.basic
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
uses chaos
|
||||
uses timeutil
|
||||
seed=GetTickCount
|
||||
int i,j
|
||||
int d[100] 'int array or any other type
|
||||
...
|
||||
for i=100 to 1 step -1
|
||||
j=irnd(1,100)
|
||||
swap d[i],d[j]
|
||||
next
|
||||
Loading…
Add table
Add a link
Reference in a new issue