macromedia.authorware
[Top] [All Lists]

Re: Random number generator help

Subject: Re: Random number generator help
From: "Chris Forecast"
Date: Tue, 11 Nov 2008 10:10:15 -0000
Newsgroups: macromedia.authorware

"dd4455" <webforumsuser@xxxxxxxxxxxxxx> wrote in message 
news:gfbis9$2vs$1@xxxxxxxxxxxxxxxxxxxxxxxx
> b. Instead of displaying one nimber at a time, a whole list of numbers is
> displayed in the range between 1 and the EntryText value.  For example, if 
> the
> EntryText value was 5, the list might be:
> 3
> 1
> 4
> 5
> 2

Try:

ResponseString:=""
repeat with i:=1 to Number(TempString)
  ResponseString:=InsertLine(ResponseString,Random(0,i-1,1),String(i))
end repeat

Chris Forecast



<Prev in Thread] Current Thread [Next in Thread>