Skip to content

Commit

Permalink
[doc] clarify the default RNG seed (1648335518)
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Aug 7, 2024
1 parent d8959eb commit fd2db48
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ where possible parameters include (the first value in [*|*] is the default)
eg: --bc ______010 saves photons exiting at y=0
-u [1.|float] (--unitinmm) defines the length unit for the grid edge
-U [1|0] (--normalize) 1 to normalize flux to unitary; 0 save raw
-E [0|int|mch](--seed) set random-number-generator seed, -1 to generate
-E [1648335518|int|mch](--seed) set rand-number-generator seed, -1 to generate
if an mch file is followed, MCX "replays"
the detected photon; the replay mode can be used
to calculate the mua/mus Jacobian matrices
Expand Down
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ where possible parameters include (the first value in [*|*] is the default)
eg: --bc ______010 saves photons exiting at y=0
-u [1.|float] (--unitinmm) defines the length unit for the grid edge
-U [1|0] (--normalize) 1 to normalize flux to unitary; 0 save raw
-E [0|int|mch](--seed) set random-number-generator seed, -1 to generate
-E [1648335518|int|mch](--seed) set rand-number-generator seed, -1 to generate
if an mch file is followed, MCX "replays"
the detected photon; the replay mode can be used
to calculate the mua/mus Jacobian matrices
Expand Down
3 changes: 2 additions & 1 deletion mcxlab/mcxlab.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@
% If any of the 4 compnents present, they should have matching row number.
%
% == MC simulation settings ==
% cfg.seed: seed for the random number generator (integer) [0]
% cfg.seed: seed for the random number generator (integer) [default 1648335518]
% setting seed to a negative integer or 0 uses system clock as seed;
% if set to a uint8 array, the binary data in each column is used
% to seed a photon (i.e. the "replay" mode)
% Example: <demo_mcxlab_replay.m>
Expand Down
2 changes: 1 addition & 1 deletion src/mcx_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -5460,7 +5460,7 @@ where possible parameters include (the first value in [*|*] is the default)\n\
eg: --bc ______010 saves photons exiting at y=0\n\
-u [1.|float] (--unitinmm) defines the length unit for the grid edge\n\
-U [1|0] (--normalize) 1 to normalize flux to unitary; 0 save raw\n\
-E [0|int|mch](--seed) set random-number-generator seed, -1 to generate\n\
-E [1648335518|int|mch](--seed) set rand-number-generator seed, -1 to generate\n\
if an mch file is followed, MCX \"replays\" \n\
the detected photon; the replay mode can be used\n\
to calculate the mua/mus Jacobian matrices\n\
Expand Down

0 comments on commit fd2db48

Please sign in to comment.