Sometimes you need random numbers in your regression test case of software web application. Let me give you examples.
1. searching records with record id on web application
2. Creating and accessing URLs for random record ids.