Re: random integer
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Sat, 28 Apr 2007 19:05:17 -0400
osmium wrote:
"Gene" writes:
But note that standard rand() is a very bad random number
generator.
There is no such thing as a standard rand(); something that does
not exist can not be either good or bad. Each vendor is allowed
to include whatever he thinks appropriate to the library that goes
with his compiler.
Er - See N869:
7.20.2.1 The rand function
Synopsis
[#1]
#include <stdlib.h>
int rand(void);
Description
[#2] The rand function computes a sequence of pseudo-random
integers in the range 0 to RAND_MAX.
[#3] The implementation shall behave as if no library
function calls the rand function.
Returns
[#4] The rand function returns a pseudo-random integer.
Environmental limits
[#5] The value of the RAND_MAX macro shall be at least
32767.
--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net
--
Posted via a free Usenet account from http://www.teranews.com
.
- Follow-Ups:
- Re: random integer
- From: Richard Heathfield
- Re: random integer
- References:
- random integer
- From: bob
- Re: random integer
- From: Gene
- random integer
- Prev by Date: Re: Applications that use thousands of data containers?
- Next by Date: Re: Change for a Dollar
- Previous by thread: Re: random integer
- Next by thread: Re: random integer
- Index(es):
Relevant Pages
|