title: Probability of three floating point numbers
body: <p>How can I implement this into code I am taking a user input of three separate floats that must add to one (ie .333333,.333333,.333333) those numbers are the probability of a number (-1,0,1) being picked at random. </p>
  
  <p><code>if( new Random().nextDouble() &lt;= 0.333334){array[i]=randomNumber(-1,0,1)</code>?</p>
  
  <p>Or something along those lines?</p>