I have a data that will get updated:
It’s “start_hour”: “10:01”,
I want the start hour to be random from 10:00 till 10:10
Sometimes it should be 10:01, 10:05, 10:02, etc
1 min increase or decrease.
How can I do it?
I have a data that will get updated:
It’s “start_hour”: “10:01”,
I want the start hour to be random from 10:00 till 10:10
Sometimes it should be 10:01, 10:05, 10:02, etc
1 min increase or decrease.
How can I do it?
To get 0 - 10:
{{floor(random * 11)}}
To get 00 - 10:
{{replace("0" + floor(random * 11); "010"; 10)}}
Thank you so much @samliew
I tried to play around with it.
Below function is correct? {{floor(random * (10 - 5 + 1)) + 5}}