> Those are just random numbers. You can create your own using RND()
>
[quoted text clipped - 8 lines]
>>
>> R.
Dave Lett was telling us:
Dave Lett nous racontait que :
> Hi,
>
[quoted text clipped - 8 lines]
> Loop
> ActiveDocument.Bookmarks.Add Name:="_Ref" & iRandom
Sorry to be picky, but..
Why
iRandom = Int((10000 - 1 + 1) * Rnd + 1)
???
Souldn't it be:
iRandom = Int((10000 * Rnd) + 1)
???
I mean
10000 - 1 + 1 always equals 10000
No?
And, could we use:
iRandom = Int(10000 * Rnd)
It seems to give the same result.
I am not very good with Maths...this is why I am asking!

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Dave Lett - 26 Apr 2006 14:57 GMT
Not picky, just an excellent eye.
I used the example in the MS Help file topic Rnd Function. In that topic,
the example is
Int((upperbound - lowerbound + 1) * Rnd + lowerbound)
Here, upperbound is the highest number in the range, and lowerbound is the
lowest number in the range.
Instead of passing values for upperbound and lowerbound, I simply changed
the values and didn't take the time to review the line for, well,
intelligence.
Dave
> Dave Lett was telling us:
> Dave Lett nous racontait que :
[quoted text clipped - 29 lines]
>
> I am not very good with Maths...this is why I am asking!
Jean-Guy Marcil - 26 Apr 2006 15:28 GMT
Dave Lett was telling us:
Dave Lett nous racontait que :
> Not picky, just an excellent eye.
> I used the example in the MS Help file topic Rnd Function. In that
[quoted text clipped - 7 lines]
> changed the values and didn't take the time to review the line for,
> well, intelligence.
LOL
Don't worry, it happens to all of us!

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org