RagDyeR Wrote:
Actually, the info is correct, *except* when using Int().
Either of these produce the range you want (1 to 9):
=ROUND(RAND()*(9-1)+1,0)
=INT(RAND()*(9)+1)
--
HTH,
RD
RD,
Many thanks for your assistance. You're quite correct that it wasn't
generating a 9 - I must have kept F9 depressed for a couple of minutes
and not one sign - okay, it could happen but I'm willing to accept
you're right and the formula doesn't work! ;)
I have an additional enquiry, out of pure interest. Would I be able to
record which number is generated in any way? What I imagined was
setting up an additional COL 'Results' and then trying to increment an
if A13=1 then x=x+1
style argument for each unique line to increment the count each time
the screen was refreshed. Thus I could see how often a number was
picked by the RAND.
Is this possible, and how might I do it? Any comments gratefully
received.
Regards,
Baldy
--
BaldySlaphead
------------------------------------------------------------------------
BaldySlaphead's Profile:
http://www.excelforum.com/member.php...fo&userid=1260
View this thread:
http://www.excelforum.com/showthread...hreadid=386779