Enhance simulation options in InteractiveConsole; add confidence index handling and new seed generation; update Plot behavior to dispose on close
This commit is contained in:
@@ -131,4 +131,13 @@ public class Rng {
|
||||
var t = multiplier * (seed % Q) - R * (seed / Q);
|
||||
return t > 0 ? t : (t + modulus);
|
||||
}
|
||||
|
||||
/**
|
||||
* This creates a new seed based on the current time.
|
||||
*
|
||||
* @return a new seed
|
||||
*/
|
||||
public static long newSeed() {
|
||||
return System.currentTimeMillis() % MODULUS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user