Virtual Photonics
Assembly: Vts (in Vts.dll) Version: 1.0.12.0 (1.0.12)
Generate two normally (Gaussian) distributed random numbers by using Box Muller Algorithm (with sine/cosine)
Namespace: Vts.MonteCarlo.HelpersAssembly: Vts (in Vts.dll) Version: 1.0.12.0 (1.0.12)
Syntax
Parameters
- nrng1
- Type:
System Double
normally distributed random number 1
- nrng2
- Type:
System Double
normally distributed random number 2
- lowerLimit
- Type:
System Double
lower limit of the uniform random number
- upperLimit
- Type:
System Double
lower limit of the uniform random number
- rng
- Type:
System Random
The random number generator
See Also