Timeline for Get random sets of 5 from 50
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 7, 2016 at 18:20 | vote | accept | paparazzo | ||
Nov 28, 2016 at 9:26 | comment | added | paparazzo | Need to add || int1 < 0 || int2 < 0 | |
Nov 28, 2016 at 8:55 | answer | added | Peter Taylor | timeline score: 2 | |
Nov 28, 2016 at 8:53 | answer | added | t3chb0t | timeline score: 2 | |
Nov 28, 2016 at 8:27 | comment | added | paparazzo | @tinstaafl If you examine the question there are 52 and 2 are removed. | |
Nov 28, 2016 at 8:09 | comment | added | paparazzo | @RonBeyer It does not shuffle the deck each time. Int1 and Int2 are removed from the deck. | |
Nov 28, 2016 at 4:46 | history | tweeted | twitter.com/StackCodeReview/status/803097767891505152 | ||
Nov 28, 2016 at 3:44 | comment | added | user33306 | Why are you using a deck of 50 cards? A common deck is 52 cards. | |
Nov 28, 2016 at 3:34 | comment | added | Ron Beyer |
It isn't completely clear to me why you want to shuffle the deck each time? If you shuffle the deck once sufficiently randomly, just choose 5 cards and remove them from a List . That way the card isn't in the deck anymore so you can't have collisions and it was shuffled randomly once. What does int1 and int2 represent? Those aren't very descriptive names?
|
|
Nov 27, 2016 at 19:59 | history | asked | paparazzo | CC BY-SA 3.0 |