public static double randomDoubleLessThan ( double maxExclusive ) { checkArgument ( maxExclusive > - Double . MAX_VALUE , "Cannot produce double less than %s" , - Double . MAX_VALUE ) ; return randomDouble ( - Double . MAX_VALUE , maxExclusive ) ; }
Returns a random double that is less than the given double .