@thi.ng/poisson

nD Stratified grid and Poisson-disc sampling w/ support for spatial density functions and custom PRNGs

grid2

JavaScript implementation of a static spatial grid index in two dimension.