Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created Sep 8, 2020
Embed
What would you like to do?
def mutate(rec, size):
index = random.randint(0, size - 1)
rec = rec ^ (1 << index)
return rec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment