This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* A code snippet (not the whole thing) or a system for | |
* generating sequences of random number at points in | |
* space and "time" (sequence order) by hashing 4-dimensional | |
* coordinates. The purpose of this is for use in | |
* procedural content generation, as an alternative to | |
* complex systems of region / chunk / area seed calculations. | |
* This allows for any of the needed pseudorandom numbers | |
* to be generated on demand, in any order, as many times | |
* as required -- easily adapting to worlds generating in |