/// <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();
        }
Example #2
0
        /// <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();
        }