Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
/ lrandom Public archive

A library for generating random numbers based on the Mersenne Twister, a pseudorandom number generating algorithm.

Notifications You must be signed in to change notification settings

LuaDist/lrandom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a random-number library for Lua 5.1. 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 [email protected] .

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

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

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

About

A library for generating random numbers based on the Mersenne Twister, a pseudorandom number generating algorithm.

Resources

Stars

Watchers

Forks

Packages

No packages published