Before revision: We consider the problem of testing for randomness against streaky alternatives in Bernoulli sequences .
After revision: We study a class of tests of the randomness of Bernoulli sequences and their application to analyses of the human tendency to perceive streaks as overly representative of positive dependence-the hot hand fallacy .