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