Quantcast
Channel: Mockaroo Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 2665

Random hours and minutes equal or smaller to 06:00

$
0
0

Hi ahu,

You probably don’t need this anymore, but it was a nice exercise as I’m trying to learn Mockaroo.

Create a Number field that will generate between 1 and 360
Create a formula that will convert that to a time.

Here’s an example: Mockaroo - Random Data Generator and API Mocking Tool | JSON / CSV / SQL / Excel

Image in case I delete the above example one day:

There’s probably a nicer way to do that. I tried using rand in the formula, but got an error that’s not permitted. I don’t use Ruby outside of Mockaroo, so I wasn’t able to figure that out.

HTH,
Paul


Viewing all articles
Browse latest Browse all 2665

Trending Articles