Working again

random function generator, and others