If you just ask for examples of density functions (PDF) that match your criteria, here are two (from countless):
p(x) = 1 if 0 < x < 1 0 otherwise p(x) = x/2 if 0 < x < 2 0 otherwise
We could even generalize them a little:
p(x) = 1/k if 0 < x < k 0 otherwise p(x) = 2x/k^2 if 0 < x < k 0 otherwise
The latter works for k> = 2. We can even generalize this with another parameter to get a class of such functions with an arbitrary exponent
p(x) = (a+1)/k^(a+1)*x^a if 0 < x < k 0 otherwise
which works for all a> 1 and k> a + 1.
For more interesting examples, I think you will need to give more criteria. You specify a transformation rule, so maybe you want to take an arbitrary bounded function on R1 and translate / scale it so that it is always between 0 and 1 and integrates with 1. This will have a direct answer if you can get min, max and the integral of this function. Go ahead and edit the question to ask if this is really what you are looking for.
source share