0Pricing
Coding for Kids · Lesson

Random Numbers

Pick a number in a range.

Random Numbers 🔢

Let us pick random numbers in any range we want! Great for dice, scores, and lucky draws. 🎲

randint Range 📏

random.randint(low, high) picks a whole number from low to high, including both!

import random
print(random.randint(1, 10))

All lessons in this course

  1. The random Module
  2. Random Numbers
  3. Random Choices
  4. A Fortune Teller
← Back to Coding for Kids