1
0
Fork 0
mirror of https://github.com/Oreolek/mod_muc_rpg.git synced 2024-05-04 09:58:15 +03:00
mod_muc_rpg/random
2015-03-25 20:57:10 +07:00
..
lrandom.c Initial commit (unfinished) 2015-03-25 14:11:58 +07:00
Makefile Trying to get it working 2015-03-25 20:57:10 +07:00
random.c Initial commit (unfinished) 2015-03-25 14:11:58 +07:00
README Initial commit (unfinished) 2015-03-25 14:11:58 +07:00
test.lua Initial commit (unfinished) 2015-03-25 14:11:58 +07:00

This is a random-number library for Lua 5.2. It is based on the Mersenne
Twister random number generator available at
	http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html

To try the library, just edit Makefile to reflect your installation of Lua and
then run make. This will build the library and run a simple test. For detailed
installation instructions, see
	http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/install.html

There is no manual but the library is simple and intuitive; see the summary
below. Read also test.lua, which shows the library in action.

This code is hereby placed in the public domain, except random.c, which is
subject to the BSD license.

Please send comments, suggestions, and bug reports to lhf@tecgraf.puc-rio.br .

-------------------------------------------------------------------------------

random library:
 __call(c) 		 new([seed]) 		 version
 __tostring(c) 		 seed(c,[seed])
 clone(c) 		 value(c,[a,b])

-------------------------------------------------------------------------------