[AccessD] A2003: Random order

Steve Erbach erbachs at gmail.com
Wed Oct 26 09:56:23 CDT 2005


Correction to my comments in the code:

' I do the + 1 here to account for the truncation that the INT() function
performs. That is,
' if the Rnd() function gives me .00125, then, even if I multiply it by 100,
the INT() function
' will return 0. The HIGHEST number that the RND() function * 100 returns is
less than 100;
' so I need that + 1 there, too, to ensure that 100 comes back as one of the
"random"
' numbers.

My original comment said: "The HIGHEST number that the RND() function * 100
is less than 1"


--
Regards,

Steve Erbach
Scientific Marketing
Neenah, WI
www.swerbach.com <http://www.swerbach.com>
Security Page: www.swerbach.com/security <http://www.swerbach.com/security>



More information about the AccessD mailing list