Skip Menu |

This queue is for tickets about the Random-Day CPAN distribution.

Report information
The Basics
Id: 123982
Status: new
Priority: 0/
Queue: Random-Day

People
Owner: Nobody in particular
Requestors: PERLANCAR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: Suggestion: random algorithm
Hi, Just a suggestion: wouldn't it be simpler and more lightweight if you convert dt_from and dt_to to epoch, then calculate a random number roughly between epoch_from and epoch_to, then convert back to DateTime object?