def lancer(n):
    c = 0
    for k in range(n):
        d = randint(1,6)
        if k > 0:
            if d == 6 and precedent == 6:
                c += 1
        precedent = d

    return c/n
