Random numbers are now generated by drand48() and used to implement diffusion in Trace() and sampling of initial electron locations in TraceSpot(), TraceMultipleSpots() and TraceRegion().
It would also be useful to make the initial random seed a config parameter, to allow for reproducible results. Currently, the seed is set from the time:
Random numbers are now generated by
drand48()
and used to implement diffusion inTrace()
and sampling of initial electron locations inTraceSpot()
,TraceMultipleSpots()
andTraceRegion()
.This issue is to review whether a generator with better statistical properties is needed, e.g., the posix random() function or Mersenne Twister.
It would also be useful to make the initial random seed a config parameter, to allow for reproducible results. Currently, the seed is set from the time: