Get a random num from 0 to x

From: Moose (mo_at_mo.com)
Date: 02/17/05


Date: Thu, 17 Feb 2005 18:18:34 -0000

Hi All

This is probably a very simple answer, but I just can't make it work with a
zero in it.

Basically I want a random number starting from 0 to 'x'

'x' being a literal value, var value or UBound value.

If I want a random number from 1 to 'x' then I don't have any problems, but
zero to 'x' results in me getting zero all or most of the time.

Your help is appreciated.

Cheers