valCoord1D method

double valCoord1D(
  1. int seed,
  2. int x
)

Implementation

double valCoord1D(int seed, int x) {
  int n = seed;
  n ^= X_PRIME * x;
  return ((n * n * n * 60493) / LONG_MAX_VALUE.toDouble());
}