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