Learn to Code via Tutorials on Repl.it!

← Back to all posts
Python Random Number Generator Tutorial
tankerguy1917 (174)

This is a tutorial for a simple random number generator in python. if it is to hard to see in the program, here is the code

import random
from random import choice

rand_num_list = [1, 2, 3, 4, 5]

rand_num_list = choice(rand_num_list)

Hope you enjoy, and I hope it helps