[cvs] / jsr166 / src / main / java / util / SplittableRandom.java Repository:
ViewVC logotype

Diff of /jsr166/src/main/java/util/SplittableRandom.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.36, Sun Nov 13 03:36:50 2016 UTC revision 1.37, Thu Nov 17 22:09:52 2016 UTC
# Line 531  Line 531 
531      }      }
532    
533      /**      /**
      * Generates a pseudorandom number with the indicated number of  
      * low-order bits.  Because this class has no subclasses, this  
      * method cannot be invoked or overridden.  
      *  
      * @param  bits random bits  
      * @return the next pseudorandom value from this random number  
      *         generator's sequence  
      */  
     protected int next(int bits) {  
         return nextInt() >>> (32 - bits);  
     }  
   
     /**  
534       * Returns a pseudorandom {@code double} value between the specified       * Returns a pseudorandom {@code double} value between the specified
535       * origin (inclusive) and bound (exclusive).       * origin (inclusive) and bound (exclusive).
536       *       *

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8