Programming with random numbers



Use of PoVSuds



Here you find a link to PoVSuds. With this small utility, you can quickly create randomly distributed objects, which are then integrated via include files.

The following images are all based on a text script.





























































































Random numbers without using PoVSuds


If you use seed() with a different number, you will get a different distribution of objects.





In the following picture, the colour distribution of the carpet is designed with random numbers.



In the next picture, the colour distribution and scaling of the spheres is random.







© 2025 Asti PoVRay-Site Mathematical spotlights Algorithmic art