From: Burge, F \(Frances\) (firstname.lastname@example.org)
Date: Wed Apr 11 2007 - 12:12:04 CEST
I have been using the FLRNDM random number generator to sample from a
spectrum in the source subroutine. To check that everything works as it
should, I have been running for a small number of particles (typically
10) and writing the sampled energy etc to a separate file. The energy is
sampled according to the following statement:
RANDNO(NPFLKA) = FLRNDM(DUM)
TKEFLK(NPFLKA) = (EMIN + (EMAX - EMIN) * RANDNO(NPFLKA))
I have noticed that every time I run the program, I get the same
energies sampled for the ten particles, which is a result of the same
random numbers being used each time. Is there something I need to
include to make sure that I get different sequences on each run?
Diamond Light Source Ltd.
Rutherford Appleton Laboratory
This archive was generated by hypermail 2.1.6 : Wed Apr 11 2007 - 12:24:15 CEST