This is an interface for a pseudo-random number generating method
Meresenne Twister MT19937 for Ruby and C.  The web page is 
<http://BioRuby.org/MT/>.


* Hos to install

$ make


* Hos to test

$ make test_mt
$ ./test_mt


* Example

  * in Ruby 

    require 'mt'

    r=Math::RNG::MT19937.new(4357)
    1000.times do
      puts r.dice(6)
    end

  * in C

    #include "mt"
    sgenrand(4357)
    for(i=0;i<1000;i++) {
      printf ("%i", genrand_dice(6));
    }


* Known bugs
  * Math::RNG::MT#randint in mt.so returns not only Bignum but also 
    Fixnum in signed. The returns should be unsigned Bignum.


* OS
  * Linux-2.2.19 


* Licence

libmt.c is free software under the Artistic license: see the file
COPYING.libmt distributed together with this code.

The other source code is distributed in the term of GNU Lesser General
Public License. See the file "COPYING" in this distribution, for more
information.


* How to contact the author

Send e-mail to Mitsuteru S. Nakao <a@bioruby.org>


* Related links

  * Meresenne Twister <http://www.math.keio.ac.jp/matumoto/emt.html>
  * Ruby RNG <http://www.ce.chalmers.se/~feldt/ruby/extensions/rng/>
