Search found 2 matches
- Tue May 01, 2012 5:36 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: array functions (length, sort, push, pop, shuffle)
- Replies: 20
- Views: 23294
Re: array functions (length, sort, push, pop, shuffle)
Hi mark - Actually your very old post does not offer a solution to shuffle because, as you pointed out, using random does not guarantee that all keys would be used and that no keys would be duplicated. I did however come up with the following code, which does, indeed, function as I wish. In this par...
- Tue May 01, 2012 1:48 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: array functions (length, sort, push, pop, shuffle)
- Replies: 20
- Views: 23294
Re: array functions (length, sort, push, pop, shuffle)
Hi Mark, I, too, am interested in the concept of shuffling the keys of an array. Example: I have an array that contains 64 smaller arrays. I want to be able to select each of the smaller arrays in a random order, BUT I want to be sure that each one gets used once and only once. If I could shuffle th...