Help for number format

Is there a way to create a sequence that starts as 000, 001, 002 up to 100?
It has to have the 3 digits throughout the sequence

Here is an example that might be what you are looking to use in order to pad your output with leading zeros.

2 fields have the same Formula which should give you an idea of how you can accomplish your request, this.to_s.rjust(3, '0')

Schema: Mockaroo - Random Data Generator and API Mocking Tool | JSON / CSV / SQL / Excel

2 Likes