Skip to content

Instantly share code, notes, and snippets.

@acwoss
Created Feb 24, 2017
Embed
What would you like to do?
# http://pt.stackoverflow.com/questions/186428
from random import choice
def escolher():
a = choice([[10.00,90.00,30.00,40.00],[50.00,60.00,90.00,80.00]])
fitness_1_temp = 0
for i in a:
fitness_1_temp = (fitness_1_temp+i) if i <= 85.0 else (fitness_1_temp-i)
return fitness_1_temp
print (escolher())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment