New course! Every coder should learn Generative AI!
Try a free lesson+ 1
guessing from your courses you mean python. so for that language you would use the random module. like this:
import random
r = random.randint(0, 12)
print(r)
so this code prints a random integer between 0 and 12