Thanks to all of you. This is what I wanted. - Gerry
>Rand() should be sufficient for what you want. The key is to provide a seed number the first time rand() is called. I recommend rand(seconds()). This step coupled with the code David Frankenbach posted should do the trick.
** Gerry White / Hagerstown, MD, USA --
** Developing since 1986 in Foxpro, VFP, Oracle, and Java.
**
http://GerrysPlace.com