Re:Building an Infinite Procedurally-Generated World
by halflings on Tuesday May 05, 2015 @07:58AM
(#9491974)
If you expect to have more tile types, you should probably consider a categorical probability distribution (something like: water: 0.3, grass: 0.3, mountain: 0.4) and sample from it (instead of "hard-coding" it with the test you're referring to)
[ Parent
| on HN ]