“Zufälliger Würfel Python” Code-Antworten

Würfel -Roll -Simulator -Python

from random import randint

def roll_dice():
    print(f"Number is: {randint(1,6)}")

# Do this to simulate once
roll_dice()   

# Do this to simulate multiple times
whatever = 12 # Put the number of times you want to simulate here
for number in range(whatever):
    roll_dice()
Random boi

Zufälliger Würfel Python

sasdasdas
Unusual Unicorn

Zufälliger Würfel Python

what code should i use for the DICE adn andom   6 numbre 
JERRICA DESI

Ähnliche Antworten wie “Zufälliger Würfel Python”

Fragen ähnlich wie “Zufälliger Würfel Python”

Weitere verwandte Antworten zu “Zufälliger Würfel Python” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen