sez bmmeili:
>Hi, what's wrong with this script? (It works fine in HC)
[script snipped]
   My first thought would be that the fault lies in this line:
>    if the result = "not found" then
   Maybe Rev uses some other result than "not found" when it fails to find 
something?

   My second thought is that it would be better to use a different algorithm. 
The way you've got it now, you're essentially rolling a 5-sided die and 
throwing out numbers that have already come up -- not so efficient. Something 
like this might be better...

  on mouseUp
    put "1,2,3,4,5" into DaList
    repeat 10 times
      put the random of 4 into Fred
      put item (Fred + 1) to 5 of DaList & "," & item 1 to Fred of DaList 
into DaList
    end repeat
    put DaList into cd field 1
  end mouseUp

   The idea here is you start with an ordered list, and then scramble the 
order of said list.

   Hope this helps...

Reply via email to