Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def uniform(size=1, precision=30):
- count = np.prod(size)
- data = coin((precision, count))
- multipliers = np.full((precision, count), 2).cumprod(axis=0)
- return (data / multipliers).sum(axis=0).reshape(size)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement