Randoms stream. + some tests