Adding Leading Zeros to a field which uses the random function
I've created a field which uses a random function to create a number from 1 to 30. However, I would like the field to show a leading zero if the number created is less than 10, in other words it should contain two characters no matter what.
Currently the field is a number field, do I need to change this to a text field?
If so, could someone tell me exactly what the script should look like please?