In `random.nim`, _sample_ is function which consists of
result = a[r.rand(a.low..a.high)]
RunSo, I think it is the function call overhead which makes the difference, especially since there is no **inline** pragma.
In `random.nim`, _sample_ is function which consists of
result = a[r.rand(a.low..a.high)]
RunSo, I think it is the function call overhead which makes the difference, especially since there is no **inline** pragma.