In article
<50430f4e-3bc0-4889-b366-937dc19560eb@[EMAIL PROTECTED]
>,
d-42 <db.****sche@[EMAIL PROTECTED]
> wrote:
> On May 8, 9:30 am, p...@[EMAIL PROTECTED]
(Per Rønne) wrote:
> > Helpful Harry <helpful_ha...@[EMAIL PROTECTED]
> wrote:
> > > In article <480a016b$0$54873$dbd4f...@[EMAIL PROTECTED]
>, "Ursus"
> > > <ursus.k...@[EMAIL PROTECTED]
> wrote:
> >
> > > > "Michael Myett" <no...@[EMAIL PROTECTED]
> schreef in bericht
> > > >news:Zc9Oj.3242$1a4.1199@[EMAIL PROTECTED]
> > > > > 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
> >
> > > > 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.
> >
> > Actually, it should not be that hard to implement, not even in
> > FileMaker. What about Mod(Get(CurrentTime);n) for any proper n?
>
> That isn't remotely 'random', though it might be 'random enough'. But
> then if your happy with that level of randomness, the built in random
> function is far superior.
Yep. It's physically and logically impossible to get a TRUELY random
number on a computer. Everything you try to do is based on mathematical
manipulation of some static source that can easily be replicated (which
in some cases is of course handy).
Helpful Harry
Hopefully helping harassed humans happily handle handiwork hard****ps ;o)


|