Debian Codegraph @

README.md

raw symbols SCIP
1
2 # MT19937
3 > An MT19937 Mersenne Twister rng implementation, with the goal of being
4 compatible with CPython's `_random` module.
5
6 This crate was translated from the original
7 [implementation](http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html)
8 by a team at Hiroshima University. The original content of the header of
9 their implementation, along with the BSD-3 license, is left intact below.
10
11
12 A C-program for MT19937, with initialization improved 2002/1/26.
13 Coded by Takuji Nishimura and Makoto Matsumoto.
14
15 Before using, initialize the state by using init_genrand(seed)
16 or init_by_array(init_key, key_length).
17
18 Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
19 All rights reserved.
20
21 Redistribution and use in source and binary forms, with or without
22 modification, are permitted provided that the following conditions
23 are met:
24
25 1. Redistributions of source code must retain the above copyright
26 notice, this list of conditions and the following disclaimer.
27
28 2. Redistributions in binary form must reproduce the above copyright
29 notice, this list of conditions and the following disclaimer in the
30 documentation and/or other materials provided with the distribution.
31
32 3. The names of its contributors may not be used to endorse or promote
33 products derived from this software without specific prior written
34 permission.
35
36 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
37 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
38 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
39 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
40 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
41 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
42 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
43 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
44 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
45 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
46 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
47
48
49 Any feedback is very welcome.
50 http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html
51 email: m-mat @ math.sci.hiroshima-u.ac.jp (remove space)