RE: [Collections] Random iterator?

2005-03-11 Thread Phil Steitz
Colebourne [mailto:[EMAIL PROTECTED] Sent: Thu 3/10/2005 4:54 PM To: Jakarta Commons Developers List Cc: Subject: Re: [Collections] Random iterator? We don't have such a method or iterator at present. I would like to

Re: [Collections] Random iterator?

2005-03-10 Thread Stephen Colebourne
We don't have such a method or iterator at present. I would like to keep [collections] for deterministic not random effects if possible. Stephen - Original Message - From: "Hernan Silberman" <[EMAIL PROTECTED]> In my unit and load tests, I often find myself retrieving a collection of obj

[Collections] Random iterator?

2005-03-02 Thread Hernan Silberman
In my unit and load tests, I often find myself retrieving a collection of objects from a service, and selecting a random one from the collection. Seems like a common use case (for testing anyhow) and I don't think there's any support in java.util Collections for, say, fetching a random item ou