First, ensure cell B1 is empty and goto Tools>Options and on the
Calculation
tab check the Iteration checkbox to stop the Circular Reference message.
Next, type this formula into cell A1
=IF(($B$1="")+(AND(A1>=0,COUNTIF(A$1:A$55000,A1)=1)),A1,RANDBETWEEN(10001,65
000)
it should show a 0
Copy A1 down to A55000.
Finally, put some value in B1, say an 'x', and all the random numbers will
be generated, and they won't change.
To force a re-calculation, edit cell A1, don't change it, just edit to
recalculate,
copy A1 down.
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)