moving random to generator, also finished degree.