Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the seed of random number generator in MC simulation #18

Open
ImanKafian opened this issue Aug 19, 2023 · 1 comment
Open

Fixing the seed of random number generator in MC simulation #18

ImanKafian opened this issue Aug 19, 2023 · 1 comment
Labels
question Further information is requested

Comments

@ImanKafian
Copy link

Hi,

I am running a MC simulation to estimate the reflectance and transmittance from a 3D slab with low number of photons (100K). I would like to know how I can fix the seed value of the random number generator in MC object to simulate exactly the same reflectance and transmittance whenever I perform the MC simulation.

Thanks.

@xopto
Copy link
Owner

xopto commented Aug 22, 2023

Set the value of the "rnginit" parameter in the Mc constructor to a fixed unsigned integer value/seed.
https://xopto.github.io/pyxopto/docs/html/apidoc/xopto.mcml.mc.html

@xopto xopto added the question Further information is requested label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants