vendredi 8 janvier 2021

How can randomize a time between yesterday and today's local DateTime in java?

I need to randomize a time in java.

If now the time is 24/2/2021 13:56:13, then I need to randomize a time between 23/2/2021 13:56:13 and 24/2/2021 13:56:13. I am not familiar to random function in Java so that I maybe need some help. Thank you for your attention.




Aucun commentaire:

Enregistrer un commentaire