Answers for "python random number generator inbuilt function"

14

python function to print random number

import random
n = random.randint(0,22)
print(n)
Posted by: Guest on June-03-2020
1

how to make a function to choose random things in python

import random
def deal_card():
    cards = [11,2,3,4,5,6,7,8,10,10,10,10]
    card = random.choice(cards)
    return card
Posted by: Guest on August-26-2021
0

How to print random in python

import random
minimum = 1
maximum = 100

num = random.randint(minimum, maximum)
print(num)
Posted by: Guest on March-02-2021

Code answers related to "python random number generator inbuilt function"

Python Answers by Framework

Browse Popular Code Answers by Language