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