Table.Random issues

Issue #14 closed
Fabian Maurer created an issue

Using Mobtalker 0.3.3. Following code:

test = {"hi", "ho"};
rnd = Table.Random(test);
say "rnd: "..rnd;

Can output "nil" or "ho". The first element of the table seems to be returned as nil.

test = {"ho"};
rnd = Table.Random(test);
say "rnd: "..rnd;

Always outputs nil.

Comments (1)

  1. Log in to comment