This is really more a ruby question than a watir one. I suggest you look
into
http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-sample

number_from_array = %w{2 3 9 55 11}
number_from_array.sample



On Fri, Nov 2, 2012 at 6:00 AM, Adrian Killens <[email protected]>wrote:

> How would you write something to generate a random number that aren't
> sequential.
>
> E.g. generate a random number picked from these four: 10, 9, 55, 3
>
> Cheers
> Aidy
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to