I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
Thank you. I was confused because the exercise ask to generate a random number “not 0” and the solution can in fact return 0. Again, thank you for taking the time to help.