Hi Sarita,

You can use
rand(int)

where integer specifies the range. For eg: rand(100) will generate random
numbers between 0 to 100.

For more info:
http://www.rubycentral.com/ref/ref_m_kernel.html#rand

Regards,
Angerz


On 1/12/07, sarita <[EMAIL PROTECTED]> wrote:

Is there any function available to get random values (char or int) so that
values can be assigned from the system itself.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6096&messageID=17082#17082
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to