Generating Random Date time in java (joda time)

后端 未结 5 1588
心在旅途
心在旅途 2021-01-04 21:32

Is it possible to generate a random datetime using Jodatime such that the datetime has the format yyyy-MM-dd HH:MM:SS and it should be able to generate two random datetimes

5条回答
  •  清歌不尽
    2021-01-04 22:08

    you can generate a random number using Math.random(); You can use this value.

提交回复
热议问题