public static long randomLong ( final long min , final long max ) { return Math . round ( Math . random ( ) * ( max - min ) + min ) ; }
Returns a natural long value between given minimum value and max value .