How Can I use spatial Geometry in the application of Random Number Generation?