// Here's what it was translated from, by the way. float noise(int x, int y) { int i = x + y * 57; i = i << 13 | i; i = (i * (i * i * 15731 + 789221) + 1376312589) & 0x7fffffff; return 1.0 - (float)i / 1073741824.0; } int main() { for (int i=0; i < 10000; i++) { for (int j=0; j < 10000; j++) { noise(i, j); } } return 0; }