by Michael Myett <noone@[EMAIL PROTECTED]
>
Apr 18, 2008 at 06:24 PM
Kevin Audleman wrote:
> On Apr 18, 9:09 am, Ron Lambert <rail...@[EMAIL PROTECTED]
> wrote:
>> I'm in need of a way to choose a random record from a file. The way I
>> have it set up is that I need to select a random record from a external
>> file if a button is pushed. I have a file made up of 120 possible
>> tasks (records). In a related file I need the option to pick a random
>> task(record) from that file and display it in the related file. Any
>> suggestions
>> --
>> A second cup of coffee always works for me
>
> Go to Record [ Floor(Random * 120)]
I would try Go to Record [ Floor(Random * 120)+1] to get the correct
range (1-120).
Mike M