title: How to implement a random number generator that is not random?
body: <p>I need a random number generator that generates various number between n and m, but no with a equal probability. I want to set a value x between n and m where the possibility is the highest:</p>
  
  <p><img src="https://i.stack.imgur.com/A5HRD.gif" alt="enter image description here"></p>
  
  <p>Is there an easy way to do that using the Random class? The likelihood should have the form of a binominal distribution or something similar (it is not important that its an exact binominal distributon, rough approximations are also ok)</p>
  
  <h2>EDIT</h2>
  
  <p>Maybe I have to clarify: I'm not looking for a binominal or gaussian distribution but also for something like this:
  <img src="https://i.stack.imgur.com/bB4ly.gif" alt="enter image description here"></p>
  
  <p>I want to to define the value x where the highest likelihood should be.</p>
  
  <h2>EDIT</h2>
  
  <p>Unfortunately the previously accepted answer <a href="https://stackoverflow.com/q/5281672/329637">does not seem to work</a> how i suspected. So I'm still looking for an answer!</p>