コード例 #1
0
 /// <summary>
 /// Returns a seeded random float in the range [0,1), using the seed from SRandInit().
 /// </summary>
 public static float SRand()
 {
     return(Native_FMath.SRand());
 }
コード例 #2
0
 /// <summary>
 /// Seeds future calls to SRand()
 /// </summary>
 public static void SRandInit(int seed)
 {
     Native_FMath.SRandInit(seed);
 }
コード例 #3
0
 /// <summary>
 /// Returns the current seed for SRand().
 /// </summary>
 public static int GetRandSeed()
 {
     return(Native_FMath.GetRandSeed());
 }
コード例 #4
0
 /// <summary>
 /// Returns a random integer between 0 and RAND_MAX, inclusive
 /// </summary>
 public static int Rand()
 {
     return(Native_FMath.Rand());
 }