Timeline for Randomizing until 0
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 10, 2018 at 6:56 | comment | added | TFeld | @JonathanAllan Thanks :), The questions says I can use an empty line instead of 0, so no error. | |
| Jul 10, 2018 at 6:56 | history | edited | TFeld | CC BY-SA 4.0 | added 62 characters in body |
| Jul 9, 2018 at 16:30 | comment | added | Jonathan Allan | ...and then while 1:print k;k=randrange(k) saves two. | |
| Jul 9, 2018 at 16:28 | comment | added | Jonathan Allan | "Input must be printed at first"... while 1:print k;k=randint(0,~-k) should work (with an error at the end) | |
| Jul 9, 2018 at 12:34 | history | edited | TFeld | CC BY-SA 4.0 | deleted 12 characters in body |
| Jul 9, 2018 at 12:26 | history | answered | TFeld | CC BY-SA 4.0 |