Skip to content

Instantly share code, notes, and snippets.

View alikhil's full-sized avatar
🎯
Focusing

Alik Khilazhev alikhil

🎯
Focusing
View GitHub Profile
@alikhil
alikhil / expr_gen.py
Created June 9, 2016 09:36
Generating boolean expressions
import random
from random import shuffle
def eq(a,b):
return 1 if a == b else 0
def not_(a):
return 0 if a else 1
def r_bit():