replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Python 2, 153 bytes
from random import*
k,t=input()
E=[0]*k
L=E+[0]
def g(i,x=0):y=E[i];E[i]=y&x^x;return y and-~g(i-1)+g(-~i%k)
exec"L[g(randrange(k),1)]+=1;"*t
print L[1:]
Turns out I had almost the same solution as Fry's, but with a bit more bit fiddling.
Python 2, 153 bytes
from random import*
k,t=input()
E=[0]*k
L=E+[0]
def g(i,x=0):y=E[i];E[i]=y&x^x;return y and-~g(i-1)+g(-~i%k)
exec"L[g(randrange(k),1)]+=1;"*t
print L[1:]
Turns out I had almost the same solution as Fry's, but with a bit more bit fiddling.
Python 2, 153 bytes
from random import*
k,t=input()
E=[0]*k
L=E+[0]
def g(i,x=0):y=E[i];E[i]=y&x^x;return y and-~g(i-1)+g(-~i%k)
exec"L[g(randrange(k),1)]+=1;"*t
print L[1:]
Turns out I had almost the same solution as Fry's, but with a bit more bit fiddling.