コード例 #1
0
        public static Random Create(int seed, RandomType type = RandomType.WellBalanced)
        {
            switch (type)
            {
            case RandomType.WellBalanced:
                return(DsfmtRandom.Create(seed));

            case RandomType.FastestInt32:
                return(MT64Random.Create(seed));

            case RandomType.FastestDouble:
                return(DsfmtRandom.Create(seed));

            default:
                throw new ArgumentException();
            }
        }
コード例 #2
0
 public AccurateRandom(ulong[] seed) : this(MT64Random.Create(seed))
 {
 }
コード例 #3
0
 public AccurateRandom(int seed) : this(MT64Random.Create(seed))
 {
 }
コード例 #4
0
 public AccurateRandom() : this(MT64Random.Create())
 {
 }