Re: random

From: Date: Fri, 30 May 2003 06:33:25 +0000
Subject: Re: random
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-149525@lists.php.net to get a copy of this message
"limiter" is the maximum number of limbs, not the max random number. A limb, according to the GMP documentation, is " the part of a multi-precision number that fits in a single word. (We chose this word because a limb of the human body is analogous to a digit, only larger, and containing several digits.) Normally a limb contains 32 or 64 bits." There's a comment on php.net/gmp_random about this On Friday 30 May 2003 12:10 am, Marius wrote: > I tried > <? > $random = gmp_intval(gmp_random(10)); > echo $random; > ?> > <? > $random = gmp_random(10); > $random = gmp_strval($random); > echo $random; > ?> > > but it echoes realy big numbers like 36324613454671 -- The people are the only sure reliance for preservation of our liberty. -Thomas Jefferson

« previous php.general (#149525) next »