Timeline for Apex Random Select & Display
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 28, 2016 at 22:07 | comment | added | Rocket_Izz | I understand your concern with duplicates. I asked this question to my coworkers before I took on this task. Their response was "for something to truly be random, it should possibly repeat." This is what they asked for. | |
Jan 28, 2016 at 20:30 | comment | added | Caspar Harmer | There is a problem with doing it this way - you will end up with duplicates in your array and probably won't get all the elements into the randomized array. This is because you need to remove the item from the source array so it can't be added again. Hmm, of course you could define randomized as a set, but even then there is no guarantee that you'll get all items from the source -just no dupes in the destination. | |
Jan 28, 2016 at 20:10 | history | edited | Caspar Harmer | CC BY-SA 3.0 |
added 8 characters in body
|
Jan 28, 2016 at 20:06 | history | answered | Rocket_Izz | CC BY-SA 3.0 |