Function and histogram with different axis

Hi all,
I generated random numbers that follow a function, because I am studding the acceptance rejection method, I used it.
Now I would overlap the histogram and the function, but I have a problem with the y-axis range, because the function have a y range between 0 and 1.5 and the histogram between 0 and 150-200.
I am sure that there are other post with the solution but I didn’t find them.
Thank you