Timeline for Uniformly generate a number from 0 to n-1 that isn't on a blacklist
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 14, 2019 at 13:31 | comment | added | Roland Illig | @Blindman67 Thanks for finding this. I had only thought about duplicate values in the list. | |
| Feb 14, 2019 at 1:12 | comment | added | Blindman67 |
How do you know if the list length is greater than n that it contains any values between 0 and n, Eg getRandNotInList(2, [5,6,7]) would incorrectly throw!
|
|
| Feb 13, 2019 at 19:14 | history | edited | Roland Illig | CC BY-SA 4.0 |
deleted 1 character in body
|
| Feb 13, 2019 at 19:09 | history | answered | Roland Illig | CC BY-SA 4.0 |