"djmasala.com" <potatoesblueyonder.co.uk> wrote in message news:svM0b.5868\$Gb3.5213news-binary.blueyonder.co.uk... > Hi, > The following Lingo would generate random numbers from 1 to 9 and > display it in a field: - > > global random1 > > on mouseUp me > set random1 to random(9) > put random1 into field "field1" > end > > ...but how would I generate 2 digit random numbers i.e., from 10 to 99? How > about 3, 4, or 5 digit random numbers? > > Thanks in advance! > > -- > [url]www.djmasala.com[/url] > > that should read: - set random1 = random(9) ;)...

"djmasala.com" <potatoesblueyonder.co.uk> wrote in message
news:svM0b.5868\$Gb3.5213news-binary.blueyonder.co.uk...
> Hi,
> The following Lingo would generate random numbers from 1 to 9 and
> display it in a field: -
>
> global random1
>
> on mouseUp me
> set random1 to random(9)
> put random1 into field "field1"
> end
>
> ...but how would I generate 2 digit random numbers i.e., from 10 to 99?
How
> about 3, 4, or 5 digit random numbers?
>
>
> --
> [url]www.djmasala.com[/url]
>
>
set random1 = random(9)

;)

djmasala.com Guest

its ok, I figured it out. Simple really: -

set random1 = random(10,99)

:D

"djmasala.com" <potatoesblueyonder.co.uk> wrote in message
news:uIS0b.55\$rb1.48news-binary.blueyonder.co.uk...
>
> "djmasala.com" <potatoesblueyonder.co.uk> wrote in message
> news:svM0b.5868\$Gb3.5213news-binary.blueyonder.co.uk...
> > Hi,
> > The following Lingo would generate random numbers from 1 to 9 and
> > display it in a field: -
> >
> > global random1
> >
> > on mouseUp me
> > set random1 to random(9)
> > put random1 into field "field1"
> > end
> >
> > ...but how would I generate 2 digit random numbers i.e., from 10 to 99?
> How
> > about 3, 4, or 5 digit random numbers?
> >
> >
> > --
> > [url]www.djmasala.com[/url]
> >
> >
>
> set random1 = random(9)
>
> ;)
>
>

djmasala.com Guest

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•