Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ︠dc2c220a-1d6e-4ce3-a7e9-00b25644063e︠
- tabpp=[2,1,2,1,1] #Tablica prawodopodobieństwa
- tabl=[0,1,2,3,4] #Tablica wartości (liczby odpowiadają kolejnością tym w tablicy tabpp)
- print tabpp[2]
- suman=7
- import random
- a=random.randrange(7)
- b=0
- for x i range(len(tabpp)):
- b=b+tabp[x]
- if b==a:
- b=x
- print b #Odpowiedz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement