I did almost the same thing, using access help, to get this formula:
myvalue= Int((999999999 * Rnd) + 100000000)
(myvalue is a field in a table defined as double)
What I noticed was that one time I got a 10-digit number and another time a
9-digit number.
Bill