How do you create a String generator

How do you create a string generator and insert it in the database.
For example: I would like to generate the code from 1000 to 100000 using the

<?php echo(mt_rand(1000,100000));?>.

I have been trying the data format: Collections : random but it is not working.
Thank you help please.

Community Page
Last updated: