I'm trying to do a simple python script to generate a random temperature reading from a sensor along the day, to test an application.
The problem is, I need to generate the temperature following a normal curve, where in the morning the temperature is colder, hot in the middle day, and goes down again at night.
Generate between two numbers is a problem since give-me a wide range of numbers and doesn't follow a normal curve.
Actually I'm using a datetime function to get the hour and increase or decrease a little the range but without any success.
Any suggestion how to do it?
Aucun commentaire:
Enregistrer un commentaire