UWSCで配列をランダムにシャッフル(並び替え)したい

uwsc

[java]
Procedure shuffleAry(var keys[])
for i = 0 to length(keys) – 1
num = random(length(keys))
value = keys[num]
keys[num] = keys[i]
keys[i] = value
next
Fend
[/java]

関連記事一覧

NEW