commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <>
Subject [jira] [Commented] (LANG-900) New RandomUtils class
Date Sat, 11 Jan 2014 19:05:51 GMT


Benedikt Ritter commented on LANG-900:

I've thought about this some more. Maybe we should just add it the way it is. If we want to
allow negative values for the input parameters, we improve the implementation later on. If
we decide to allow {{Range}} as input parameter, we can add method overloads later on.

> New RandomUtils class
> ---------------------
>                 Key: LANG-900
>                 URL:
>             Project: Commons Lang
>          Issue Type: New Feature
>            Reporter: Duncan Jones
>            Priority: Minor
>             Fix For: Review Patch, Discussion
>         Attachments:,
> 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!

This message was sent by Atlassian JIRA

View raw message