Timeline for Randomizing until 0
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 30, 2018 at 16:00 | comment | added | Ethan | Thanks @Titus! That's very helpful, I've updated my solution (-1 byte). | |
Jul 30, 2018 at 15:59 | history | edited | Ethan | CC BY-SA 4.0 |
deleted 101 characters in body
|
Jul 30, 2018 at 15:42 | comment | added | Titus |
Why don´t you just append 0 instad of two newlines?
|
|
Jul 11, 2018 at 11:32 | comment | added | Ethan | Right you are @Med! Thanks for letting me know, I've updated my answer. | |
Jul 11, 2018 at 11:32 | history | edited | Ethan | CC BY-SA 4.0 |
Updated for `-1`. Suggested by Med.
|
Jul 11, 2018 at 9:54 | comment | added | Med |
rand(0,$a) get a number between 0 and $a included. As $a should not be a possible value, the max argument for rand must be $a-1
|
|
Jul 9, 2018 at 13:58 | history | edited | Ethan | CC BY-SA 4.0 |
Updated to print the input first.
|
Jul 9, 2018 at 13:48 | history | answered | Ethan | CC BY-SA 4.0 |