Advertisement
stafino

Untitled

May 22nd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. import random
  2.  
  3.  
  4. def kocka():
  5.     pocet = [0, 0, 0, 0, 0, 0]
  6.     for i in range(100):
  7.         hod = random.randrange(6)
  8.         pocet[hod] += 1
  9.         print(1+i, ". hod: ", + hod+1, "sa hodila uz ", pocet[hod], " krat.")
  10.  
  11.  
  12. kocka()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement