$shadeprobability = new ProbabilityRandom;
$shadeprobability->add($mothershade,10);
$shadeprobability->add($fathershade,10);
$shadeprobability->add("1000",100);
$shadeprobability->add("1001",25);
$shadeprobability->add("1002",15);
$shadeprobability->add("1003",25);
$shadeprobability->add("1004",15);
$shadeprobability->add("1005",15);
$shadeprobability->add("1006",25);
$shadeprobability->add("1007",15);
$shade = $shadeprobability->get();
$sql = "SELECT * FROM `shade` LIMIT 0, 30 ";
$arrayshade = $shade;
我不确定如何获得$ shade = $ shadeprobability - > get();转到数据库并找到匹配项,然后将其存储在$ arrayshade
中