home *** CD-ROM | disk | FTP | other *** search
- property currentItem, listSize, randomList
-
- on birth me, listLength
- set the listSize of me to listLength
- makeList(me)
- return me
- end
-
- on makeList me
- set the randomList of me to []
- repeat with i = 1 to the listSize of me
- addAt(the randomList of me, random(i), i)
- end repeat
- set the currentItem of me to 0
- end
-
- on updateItemCounter me
- set the currentItem of me to the currentItem of me + 1
- end
-