1st draft gene_rand and most of microscope