mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
grand: Fix URLs for info on the Mersenne Twister
Reported by Allin Cottrell here: http://mail.gnome.org/archives/gtk-devel-list/2010-December/msg00134.html
This commit is contained in:
parent
89b558077f
commit
f0354ff059
@ -68,8 +68,8 @@
|
||||
* pseudo-random number generator (PRNG). It uses the Mersenne Twister
|
||||
* PRNG, which was originally developed by Makoto Matsumoto and Takuji
|
||||
* Nishimura. Further information can be found at
|
||||
* <ulink url="http://www.math.keio.ac.jp/~matumoto/emt.html">
|
||||
* www.math.keio.ac.jp/~matumoto/emt.html</ulink>.
|
||||
* <ulink url="http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html">
|
||||
* http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html</ulink>.
|
||||
*
|
||||
* If you just need a random number, you simply call the
|
||||
* <function>g_random_*</function> functions, which will create a
|
||||
|
@ -38,7 +38,7 @@ G_BEGIN_DECLS
|
||||
typedef struct _GRand GRand;
|
||||
|
||||
/* GRand - a good and fast random number generator: Mersenne Twister
|
||||
* see http://www.math.keio.ac.jp/~matumoto/emt.html for more info.
|
||||
* see http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html for more info.
|
||||
* The range functions return a value in the intervall [begin, end).
|
||||
* int -> [0..2^32-1]
|
||||
* int_range -> [begin..end-1]
|
||||
|
@ -22,7 +22,8 @@
|
||||
#include "glib.h"
|
||||
|
||||
/* Outputs tested against the reference implementation mt19937ar.c from
|
||||
http://www.math.keio.ac.jp/~matumoto/MT2002/emt19937ar.html */
|
||||
* http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/emt19937ar.html
|
||||
*/
|
||||
|
||||
/* Tests for a simple seed, first number is the seed */
|
||||
const guint32 first_numbers[] =
|
||||
|
Loading…
Reference in New Issue
Block a user