Working with vectors [closed]

2

I need to generate a vector with 100 random number positions and see what the proportion of numbers 2 to every 10 vector positions, the first part I got, but the rest does not help?

import random as rd


v=[]

for i in range(0, 20):
    w=rd.randint(0, 3)
    v.append(w) 
    
asked by anonymous 30.11.2015 / 21:44

0 answers