How to generate a random Time, say, in between Time::UNIX_EPOCH and Time.local?
Time
Time::UNIX_EPOCH
Time.local
I need it to shuffle an array, which being sorted by Time field afterwards.
Time.unix(Random.new.rand(Time::UNIX_EPOCH.to_unix..Time.local.to_unix))
https://play.crystal-lang.org/#/r/8g06