Java Utililty Methods Random Time

List of utility methods to do Random Time

Description

The list of methods to do Random Time are organized into topic(s).

Method

StringgetRandomTimeOfDay()
get Random Time Of Day
long time = System.currentTimeMillis();
int hrs = getRandomNumberBelow(4) * 6;
int mins = getRandomNumberBelow(4) * 15;
return _TIME_FMT.format(new Date(time + hrs * 3600000 + mins * 60000));