I'm trying to generate multiple random datetime stamps between two dates,
I tried with using the below code based on the existing post and question, but it generates only a single random date time.
import datetime
import random
import pandas as pd
min_date = pd.to_datetime('2019-01-01 00:00:00')
max_date = pd.to_datetime('2019-01-01 23:59:59')
start + datetime.timedelta(seconds=random.randint(0, int((end - start).total_seconds())),)
>>> Timestamp('2019-09-27 05:58:40')
Is there a way to generate multiple date time based on the size mentioned. Say if the size is mentioned as 100, it should generate 100 random date timestamps objects similar to the output as mentioned above. Also I want to store the 100 time stamps in a pandas dataframe.