source/Random.h
/**
     * Starts a new sequence of pseudo random numbers.
     *
     * @param new_seed The seed for the new sequence.
     * A negative seed means that the random number generator gets its
     * seed from the actual system time and the process ID.
     **/
Starts a new sequence of pseudo random numbers.
@param new_seed The seed for the new sequence.
A negative seed means that the random number generator gets its
seed from the actual system time and the process ID.
Starts a new sequence of pseudo random numbers . @param new_seed The seed for the new sequence . A negative seed means that the random number generator gets its seed from the actual system time and the process ID .
inline void ResetSeed(const int _seed) {
      original_seed = _seed;
      if (_seed <= 0) {
        int seed_time = (int) time(NULL);
        int seed_mem = (int) ((uint64_t) this);
        seed = seed_time ^ seed_mem;
      } else {
        seed = _seed;
      }
      if (seed < 0) seed *= -1;
      seed %= _RAND_MSEED;
      init();
    }
inline void ResetSeed ( const int _seed ) { original_seed = _seed ; if ( _seed <= 0 ) { int seed_time = ( int ) time ( NULL ) ; int seed_mem = ( int ) ( ( uint64_t ) this ) ; seed = seed_time ^ seed_mem ; } else { seed = _seed ; } if ( seed < 0 ) seed *= -1 ; seed %= _RAND_MSEED ; init ( ) ; }
Starts a new sequence of pseudo random numbers.
Starts a new sequence of pseudo random numbers .