Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/o/m/OMS-HEAD/sage/modular/overconvergent/pollack/dist_char_old.py   OMS(Download)
def random_dist_char(p,k,chi,M):	
	"""Returns a random distribution with prime p, weight k, character chi, and M moments"""
	moments=[ZZ(floor(random()*(p**M))) for i in [1..M]]
 
	return dist_char(p,k,chi,moments)