From 5e8b90e02b1858fda8e61838bd7cebe684df1290 Mon Sep 17 00:00:00 2001 From: norill Date: Tue, 7 Apr 2015 19:12:51 +0200 Subject: [PATCH] fixed biased shuffle algorithm --- code/__HELPERS/lists.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/__HELPERS/lists.dm b/code/__HELPERS/lists.dm index 9a237d24be0..243c176cb8d 100644 --- a/code/__HELPERS/lists.dm +++ b/code/__HELPERS/lists.dm @@ -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