Skip to content

Instantly share code, notes, and snippets.

@laginha
laginha / randomizer.py
Last active December 6, 2019 22:05
Interface built over python module random
import random, math
MAX = 100
MIN = 10
class Randomizer:
def __init__(self):
self.choice = random.choice
self.list = lambda f,m: [ f() for i in self.range(0,m) ]
self.hash = lambda a,b: dict( zip( a(), b() ) )