[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: PRNG for Lua 4.0?
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 10 Sep 2013 11:13:19 +0200
2013/9/10 Michael Horvath <mikh2161@gmail.com>:
> OK since this code is not working for me, does anyone have a
> suggestion for a different PRNG implementation I could use instead?
What's wrong with Lua 4.0.1's built-in functions?
$ lua4
Lua 4.0.1 Copyright (C) 1994-2000 TeCGraf, PUC-Rio
> randomseed(12345678)
> for k=1,10 do print(random()) end
0.1511258180956942
0.3759253287575791
0.8821065192493175
0.8820500904144952
0.7557175791616167
0.3503229414812862
0.1539176572830964
0.397778907510349
0.6410172240068285
0.4546156774529329