fixed biased shuffle algorithm

This commit is contained in:
norill
2015-04-07 19:12:51 +02:00
parent 6550016ee6
commit 5e8b90e02b
+2 -2
View File
@@ -185,8 +185,8 @@
return
L = L.Copy()
for(var/i=1, i<=L.len, ++i)
L.Swap(i,rand(1,L.len))
for(var/i=1, i<L.len, ++i)
L.Swap(i,rand(i,L.len))
return L