title: Random number in Haskell
body: <p>I'm trying to get a random number in Haskell. (Which I'm currently learning and haven't got on to Monads or IO, etc) the problem is the functions in System.Random all return an IO Int, which I then can't use in the rest of my code which uses Int and Float. </p>
  
  <p>The objective here is to choose a pair from a list where the first of the pair is a float representing a probability. So my plan was to use a random number to choose a pair based on its probability. </p>