> In this code, when going through the loop,
randNum doesn't change to a
> different value (which is a bit of a problem and not
very random if you ask
> me).
You probably know this, but selecting "1,1,1" is just as
likely (or, to put
it another way, "random") as "591,7123,6996".
However by the sounds of it, you are getting runs of the same
number too
frequently to consider this "random happenstance" (sic)?
> Is there something I am doing wrong to produce the same
random number
> through the loop?
Not that I can see.
I've never had a problem with randRange() coming up with the
goods
vis-a-vis reasonably random results (random enough for any
purpose I use it
for, anyhow).
As for Ian's thing about randomize(), I *suspect* that that
applies to
numbers generated by rand(). I was under the impression that
randRange()
dealt with the random seeding internally. Not that I've
checked...
--
Adam