Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-900

New RandomUtils class

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.3
    • None
    • None

    Description

      Attached is a new RandomUtils class and associated test, which offers some methods not available in the standard Random class:

      • a nextBytes(int count) method that returns a byte array
      • versions of nextInt, nextLong, nextFloat and nextDouble that return a value within a range.

      Comments very welcome!

      Attachments

        1. RandomUtilsTest.java
          6 kB
          Duncan Jones
        2. RandomUtils.java
          6 kB
          Duncan Jones

        Activity

          People

            britter Benedikt Ritter
            dmjones500 Duncan Jones
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: