Re: Replacing rand()
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Replacing rand()
- From: Jamie Webb <j@...>
- Date: 2004年2月23日 19:23:59 +0000
On Monday 23 February 2004 18:15, Brian Hook wrote:
> I noticed that Math.random() uses the C RTL's rand() function which as
> I'm sure everyone knows, is rather poor. It would be fairly trivial
> and small to put in an inline Mersenne Twister implementation.
I doubt the Lua authors will be interested in something like that, but I
imagine that if you made a Lua implementation it would be happily received
into the stdlib project, or a C module implementation into LuaCheia.