Random record

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
Railman [ Fr, 18 April 2008 18:09 ] [ ID #1945229 ]

Re: Random record

On Apr 18, 9:09 am, Ron Lambert <rail... [at] sasktel.net> 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)]
Kevin Audleman [ Fr, 18 April 2008 20:17 ] [ ID #1945232 ]

Re: Random record

Kevin Audleman wrote:
> On Apr 18, 9:09 am, Ron Lambert <rail... [at] sasktel.net> 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
The other Mike [ Sa, 19 April 2008 00:24 ] [ ID #1945233 ]

Re: Random record

"Michael Myett" <noone [at] nowhere.net> schreef in bericht
news:Zc9Oj.3242$1a4.1199 [at] fe73.usenetserver.com...
> Kevin Audleman wrote:
>> On Apr 18, 9:09 am, Ron Lambert <rail... [at] sasktel.net> 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
>

And be aware that truly random not exists with filemaker

Keep well, Ursus
E W P Appeldoorn [ Sa, 19 April 2008 16:27 ] [ ID #1945761 ]

Re: Random record

In article <480a016b$0$54873$dbd4f001 [at] news.wanadoo.nl>, "Ursus"
<ursus.kirk [at] orange.nl> wrote:

> "Michael Myett" <noone [at] nowhere.net> schreef in bericht
> news:Zc9Oj.3242$1a4.1199 [at] fe73.usenetserver.com...
> > Kevin Audleman wrote:
> >> On Apr 18, 9:09 am, Ron Lambert <rail... [at] sasktel.net> 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
> >
>
> And be aware that truly random not exists with filemaker

It's not reallt a FileMaker fault though - truly random numbers don't
exist on computers in any software.

Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)
Helpful Harry [ Sa, 19 April 2008 23:25 ] [ ID #1945762 ]

Re: Random record

> And be aware that truly random not exists with filemaker
>
> Keep well, Ursus

Well it's certainly random enough.
Paul Bruneau [ So, 20 April 2008 10:36 ] [ ID #1946230 ]

Re: Random record

Thanks, it would be random enough for me.
--
A second cup of coffee always works for me
Railman [ So, 20 April 2008 18:13 ] [ ID #1946231 ]
Datenbanken » comp.databases.filemaker » Random record

Vorheriges Thema: A Join query
Nächstes Thema: Compare Filemaker 8 and 9