adding 'Random' option and funcionality in the generator