/// <summary> /// Initializes a new instance of the <see cref="ZigguratExponentialGenerator"/> class. /// </summary> /// /// <param name="seed">The random seed to use. Default is to use the next value from /// the <see cref="Generator">the framework-wide random generator</see>.</param> /// public ZigguratExponentialGenerator(int seed) { u = new ZigguratUniformOneGenerator(seed); ke = new uint[256]; fe = new double[256]; we = new double[256]; setup(); }
/// <summary> /// Initializes a new instance of the <see cref="ZigguratNormalGenerator"/> class. /// </summary> /// /// <param name="seed">The random seed to use. Default is to use the next value from /// the <see cref="Generator">the framework-wide random generator</see>.</param> /// public ZigguratNormalGenerator(int seed) { u = new ZigguratUniformOneGenerator(seed); kn = new uint[128]; fn = new double[128]; wn = new double[128]; setup(); }
/// <summary> /// Initializes a new instance of the <see cref="ZigguratNormalGenerator"/> class. /// </summary> /// /// <param name="seed">The random seed to use. Default is to use the next value from /// the <see cref="Generator">the framework-wide random generator</see>.</param> /// public ZigguratNormalGenerator(int seed) { u = new ZigguratUniformOneGenerator(seed); }
/// <summary> /// Initializes a new instance of the <see cref="ZigguratExponentialGenerator"/> class. /// </summary> /// /// <param name="seed">The random seed to use. Default is to use the next value from /// the <see cref="Generator">the framework-wide random generator</see>.</param> /// public ZigguratExponentialGenerator(int seed) { u = new ZigguratUniformOneGenerator(seed); }
/// <summary> /// Initializes a new instance of the <see cref="ZigguratUniformOneGenerator"/> class. /// </summary> /// /// <param name="seed">The random seed to use. Default is to use the next value from /// the <see cref="Generator">the framework-wide random generator</see>.</param> /// <param name="max">The upper bound for generated values.</param> /// <param name="min">The lower bound for generated values.</param> /// public ZigguratUniformGenerator(double min, double max, int seed) { u = new ZigguratUniformOneGenerator(seed); Min = min; Length = max - min; }