Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void print_chunk_pattern(int64_t x, int64_t z) {
- int64_t seed = (x*341873128712LL + z*132897987541LL)^0x5DEECE66DLL;
- for(int a = 0; a < 16; ++a) {
- for(int b = 0; b < 16; ++b) {
- seed = seed*709490313259657689LL + 1748772144486964054LL;
- seed = seed & ((1LL << 48LL) - 1LL);
- if(4 <= (seed >> 17) % 5) {
- printf("1,");
- } else {
- printf("0,");
- }
- seed = seed*5985058416696778513LL + -8542997297661424380LL;
- }
- putchar('\n');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment