poisson is library for generating 2d poisson-disk distributions.
poisson is used through struct PoissonDisk.
PoissonDisk can be created with perioditic constructor for distribution to wrap around.
Function calc_radius can be used to calculate radius based on amount of samples wanted and relative radius.
Samples can be given to the method for creating distribution to make it take those account when creating the distribution.
Documentation is here