Skip to content

Review random number usage #6

Description

@dkirkby

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().

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:

srand48( (unsigned int) time(NULL));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions