mardi 5 octobre 2021

In Postman mock servers, how do I mock a response with a random 10-digit number?

I’m using Postman 8.12.1. I’m creating a mock server and trying to set up my mock response for a certain request so that the response returns a random 10 digit number. However, the only pre-built function I can find is “randomInt”

enter image description here

That seems to have a very limited range. Is there a way I can configure my response to return a random integer that has 10 digits? It is fine if the leading digits are zeroes.




Aucun commentaire:

Enregistrer un commentaire