Function to generate a random phenotype of 'nb_genes' chromosomes.