Made an Aynrandom number generator on an impulse.