Random Date

Questions, comments, and suggestions related to Typeitin.
Post Reply
Posts: 1
Joined: Fri Oct 09, 2020 5:58 am

Random Date

Post by Namirred » Fri Nov 13, 2020 6:39 am


Is there a way to randomise the date? I want to pick a date up to 30 days into the future. I have tried {Var1 Random 30}{Date dd/mm/yyyy,Var1} but it just gets ignored.

Thank you in advance


Site Admin
Posts: 39
Joined: Wed Jan 16, 2019 4:32 pm

Re: Random Date

Post by Wavget » Fri Nov 13, 2020 11:11 am

Hi Namirred,

You can randomize the date with the following statement:

{Var1 Random 30}{Date mm/dd/yyyy,{Var1}}

The first part randomizes a value between 1 and 30 and stores it in Variable number 1.

The second part prints the date with the random value added to it.

Hope this helps,

Post Reply