I have generated random numbers in a certain range before sorting it:
A = []
for _ in range(10000):
value = np.random.randint(60,100)
A.append(value)
A = sorted(A)
But what I want to do is to obtain a list of A that is sorted like the sine graph (with peaks and valleys). So essentially the values should be sorted in a manner where it gradually rises and falls with valleys at 60 and peaks at 100.
I am trying to create very simple mock data simulating heart rate. I have thought about using sort using a custom key but I don't know where to start. I've also looked into Faker but I don't think I can achieve the generated data I wanted with it (correct me if I'm wrong!)
Totally up for different solutions for this problem. Thanks in advance!