- edited description
Table.Random broken
Issue #32
resolved
Given the following code:
say "x", "x";
table = {};
table[1] = "1";
table[2] = "2";
table[3] = "3";
for i=0, 20 do
local rnd = Table.Random(table);
say "rnd $i", "$rnd";
if(rnd ~=nil) then
say "dump", Table.Dump(rnd);
end
end
This code sometimes outputs nil and sometimes it prints the table itself.
Comments (4)
-
reporter -
- changed milestone to 3.0.2
-
-
- changed status to resolved
Fix derp in Table.Random. Fixes
#32→ <<cset 57429feefe49>>
- Log in to comment