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