For a project, I need to create a random number generator code. But I need the mean to be docile.

For instance. A RandomNumberGenerator that generates a float (Decimal) value between 0 and 1. But the results are skewed in favour of (For example) 0.1 when the mean is calculated. But if I changed a variable I can manipulate the mean to be a different number.

If this is something challenging then don't worry. I was just wondering if there's a known algorithm already for this as I can't find it anywhere. But if there is one, Could you please help explain all the variables as, Like I said at the start, I'm really not great with statistics maths, especially the terminology .

Thanks for taking the time to read, And I apologise if this was the wrong forum to post this.