title: code is to generate a probability, choose it, then pull it from a mysql database table
body: <pre><code> $shadeprobability = new ProbabilityRandom;  
   $shadeprobability-&gt;add($mothershade,10);  
   $shadeprobability-&gt;add($fathershade,10);  
   $shadeprobability-&gt;add("1000",100);  
   $shadeprobability-&gt;add("1001",25);  
   $shadeprobability-&gt;add("1002",15);  
   $shadeprobability-&gt;add("1003",25);  
   $shadeprobability-&gt;add("1004",15);  
   $shadeprobability-&gt;add("1005",15);  
   $shadeprobability-&gt;add("1006",25);  
   $shadeprobability-&gt;add("1007",15);  
   $shade = $shadeprobability-&gt;get();  
   $sql = "SELECT * FROM `shade` LIMIT 0, 30 ";  
   $arrayshade = $shade;  
  </code></pre>
  
  <p>I'm not sure how to get the  $shade = $shadeprobability ->get(); to goto the database and find a match and then store that in $arrayshade </p>