Update gene_random.py
Simplified random gene
This commit is contained in:
@ -2,4 +2,4 @@
|
|||||||
import random
|
import random
|
||||||
|
|
||||||
def random_gene(domain):
|
def random_gene(domain):
|
||||||
return domain[random.randint(0, len(domain)-1)]
|
return random.choice(domain)
|
||||||
|
|||||||
Reference in New Issue
Block a user