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

New RandomUtils class

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: