Ejemplo n.º 1
0
def getSweepsEasy(games,n):
    """
    Return an n x games x 52 Array that represents the shuffles for <games> for
    the first n shuffles
    """
    #mine returns an np.array just we can use array slicing
    return np.array([bjCommon.shuffle(games,2521,13,2**16,seed) for seed in xrange(n)])
Ejemplo n.º 2
0
def getSweepsHard(games,time,approx=120):
    """
    Return an n x games x 52 Array that represents the shuffles for <games> for
    the n possible seeds from the 2*approx second interval (above and below time)
    """
    #Create a list of seeds based on the time interval
    seeds = np.arange(time-approx,time+approx)
    return np.array([bjCommon.shuffle(games,25214903917, 11,2**48,seed) for seed in seeds])