Path: utzoo!mnetor!uunet!unisoft!cerebus!dalea From: dalea@cerebus.UUCP (Dale M. Arends X5706) Newsgroups: comp.sys.mac.hypercard Subject: Re: shuffling cards Message-ID: <479@cerebus.UUCP> Date: 6 Jan 88 21:05:41 GMT References: <3708@tut.cis.ohio-state.edu> <778@ur-tut.UUCP> <7130@apple.UUCP> Reply-To: dalea@cerebus.UUCP (Dale M. Arends) Followup-To: comp.sys.mac.hypercard Distribution: all Organization: Fujitsu America, Inc. Lines: 16 Keywords: random, shuffle Summary: Randon sequencing Unless the intent is to hit every card once and only once each time through the stack, you could have a field in each card that holds a number. Then, put a statement such as "go to card with random(n) in field 'number'" in the mouseUp script of the next card button and the previous card button. This would allow chosing the next random card at the time it is needed. It isn't clean, but it works. The drawback is that some cards may be hit repeatedly while others may not be hit at all. -- -- Dale M. Arends (Fujitsu America Inc., San Jose, Calif.) {...}!amdahl!cerebus!dalea The opinions expressed herein do not necessarily reflect those of my employer. They are entirely my own if they make sense and I disavow them if they don't.