示例#1
0
 /// <summary>
 /// Sets the prime number based on the current seed.
 /// </summary>
 /// <remarks>
 /// Note that if you change the seed via <see cref="Curr"/>, you should make
 /// sure to call this method so that a new prime number is available via
 /// <see cref="Prime"/>.
 /// </remarks>
 /// <seealso cref="Curr"/>
 /// <seealso cref="Prime"/>
 public void SetPrime()
 {
     Prime = Primes.GetPrimeAt((int)Curr - 1);
 }