/// <summary>
        /// Creates a new instance of <see cref="Xoshiro512StarStarRandom"/>.
        /// </summary>
        /// <returns>A new instance of <see cref="Xoshiro512StarStarRandom"/>.</returns>
        public IRandomSource Create()
        {
            ulong seed = _seedSource.GetSeed();

            return(new Xoshiro512StarStarRandom(seed));
        }
Example #2
0
 /// <summary>
 /// Get a new seed value.
 /// </summary>
 public static ulong GetSeed()
 {
     return(DefaultRandomSeedSource.GetSeed());
 }
Example #3
0
        /// <summary>
        /// Creates a new instance of <see cref="Xoshiro256PlusRandom"/>.
        /// </summary>
        /// <returns>A new instance of <see cref="Xoshiro256PlusRandom"/>.</returns>
        public IRandomSource Create()
        {
            ulong seed = _seedSource.GetSeed();

            return(new Xoshiro256PlusRandom(seed));
        }
Example #4
0
        /// <summary>
        /// Create a new instance of XorShiftRandom.
        /// </summary>
        public IRandomSource Create()
        {
            ulong seed = _seedSource.GetSeed();

            return(new XorShiftRandom(seed));
        }