Re: random_seed
From: Jan Vorbrüggen (jvorbrueggen-not_at_mediasec.de)
Date: 07/26/04
- Next message: David Frank: "Re: [Question:]How to split one file into 3/4 using fortran?"
- Previous message: Gary L. Scott: "Re: [Question:]How to split one file into 3/4 using fortran?"
- In reply to: Kurda Yon: "random_seed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 26 Jul 2004 14:35:51 +0200
> Can anybody explain me what for author wanted to use "random_seed" and
> why it does not work?
The seed is the internal state of a pseudo-random number generator that
determines the next number being generated. Getting the seed now and setting
it later allows you to (re-)start the sequence of numbers. As written, your
sample program could indeed dispense with all calls involving the seed,
because it calls the getting and setting back-to-back. You need to allocate
the seed to the size specified by the first call because the standard
allows each implementation to have internal state of different size.
Jan
- Next message: David Frank: "Re: [Question:]How to split one file into 3/4 using fortran?"
- Previous message: Gary L. Scott: "Re: [Question:]How to split one file into 3/4 using fortran?"
- In reply to: Kurda Yon: "random_seed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|