Ask coding questions

← Back to all posts
Hello, I'm new!
SamarthGill (9)

So, I was exploring this platform, and I imported the random module (A default module), and I wanted a random integer:
I put
number =,30)
But this was wrong, Can someone help me?

Answered by CT2224 (144) [earned 5 cycles]
View Answer
CT2224 (144)
number = random.randint(1, 30)
SamarthGill (9)

Thanks! I forgot it...