exemple910.py

Created by niz-moussatat

Created on March 02, 2022

203 Bytes


from random import randint
def frequence():
  compteur = 0
  for i in range(1000) :
    lancer = randint(1,6)
    if lancer == 5 :
      compteur = compteur + 1
  return compteur / 1000