I am trying to generate a random set of data that should have a certain shape, lets say a normal distribution shape, where its maximum value = x and the total = y.

Basically, I am looking to generate data the represents the hourly energy consumption rate of a house and the sum of these data should equal to a certain monthly consumption value and the peak( max value) of these data should equal a certain value as well.

Any methods, concepts, software that can direct me to the solution ?

Thanks in advance