title: Random algorithm with restricted outcome
body: <p>Let's say you have a random algorithm which can choose between 2 elements however you want the 2nd element to have a chance of only 1% to be selected. What is the algorithmic logic behind it? 
  Also any idea on how I could find more on this matter? I researched random algorithms with determined output but couldn't find answer to my question. </p>
  
  <p>I looked into <a href="https://en.wikipedia.org/wiki/Cryptographically_secure_pseudorandom_number_generator" rel="nofollow noreferrer">Cryptographically secure pseudorandom number generator</a> however I think that for now, it is not necessary to overcomplicate things. </p>