This query says, “I want a 2 D array of 65535 x 65535, and I want chunks of size 16 x 16.” In other words, what you’re doing is to create 16,776,704 “chunks”, which is a lot of chunks. In general we recommend chunks to contain about 1,000,000 data values, which is 1000x1000.

Also … do you want val to be a double? Or an int32? The random() function generates an int32 in the range 0…[2^32], so it’s quite enough to go %100. On the other hand, if what you want is a double, try: