public double random ( ) { long z = next ( ) ; int exponentMag = 4 ; double resolution = 1e8 ; double x = ( ( z / 2 ) % resolution ) / resolution ; double y = z % exponentMag - exponentMag / 2 ; while ( y > 1 ) { y -- ; x = 2 ; } while ( y < - 1 ) { y ++ ; x /= 2 ; } return x ; }
Random double .