man rand
DESCRIPTION
rand() uses a multiplicative congruential random-number gen-
erator with period 2^32 that returns successive pseudo-
random numbers in the range from 0 to (2^15)-1.
The function srand() uses the argument seed as a seed for a
new sequence of pseudo-random numbers to be returned by sub-
sequent calls to the function rand(). If the function
srand() is then called with the same seed value, the
sequence of pseudo-random numbers will be repeated. If the
function rand() is called before any calls to srand() have
srand() is then called with the same seed value, the
sequence of pseudo-random numbers will be repeated. If the
function rand() is called before any calls to srand() have
been made, the same sequence will be generated as when
srand() is first called with a seed value of 1.
rand_r() has the same functionality as rand() except that a
pointer to a seed seed must be supplied by the caller. The
seed to be supplied is not the same seed as in srand().
/"\
\ /
X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
/ \ CAMPANHA DA FITA ASCII - CONTRA MAIL EM HTML
Linux ... a nice place to live
*******************************************
* Alex Eduardo Chiaranda *
* mail: [EMAIL PROTECTED] *
* [EMAIL PROTECTED] *
* Pagina => http://www.eep.br/~aechiara *
* ICQ => UIN 13070511 *
* 4o Ano de Ciencia da Computacao *
* Escola de Engenharia de Piracicaba *
* Piracicaba - SP *
*******************************************
On Wed, 12 Apr 2000, Fabio da Silva Santos wrote:
>
> E ae pessoal, beleza!!?
>
> Bom, vc's sabem a diferenca entre o rand e o srand??
> Alguem tem um exemplo??
>
> Valeu!!
>
>
>
>
>
> http://www.mrweb.com.br/perl/
> =======================================
> >>No site da lista, voce tera tudo sobre PERL,
> >>LINUX, PHP, ASP e informacoes, cadastramento
> >>e descadastramento da Lista.
> =======================================
>
http://www.mrweb.com.br/perl/
=======================================
>>No site da lista, voce tera tudo sobre PERL,
>>LINUX, PHP, ASP e informacoes, cadastramento
>>e descadastramento da Lista.
=======================================