Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sample_list = []
- for i in range(50):
- c = random.randrange(0, 15)
- n = 0.4 * c - 0.8
- if n < 0:
- n = 0
- n = round(n, 2)
- pairs_list = [c, n]
- sample_list.append(pairs_list)
- new_list = []
- epsilon = int(random.normalvariate(0, 1))
- n_e = n + epsilon
- sim_list = [c, n_e]
- new_list.append(sim_list)
- sample_list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement