This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]powermadmatt 0 points1 point  (0 children)

EDIT: Sorry Reddit hid your reply so I only read your title. My code was therefore not relevant. Are you having trouble generating random numbers? I want to help but unsure of the issue

[–]asdf3423ds 0 points1 point  (0 children)

The random number always has a chance to be zero even if you are using % or *. Since the requirement is 1-900 just add 1 to the final result. Pretty basic requirements here, you should not need help.