Assume I want to \[code\]choose\[/code\] a number from \[code\]1-10\[/code\] at random, but there are weights to each number. \[code\]1 - 15% chance2 - 15% chance3 - 12% chance4 - 12% chance5 - 10% chance6 - 10% chance7 - 8% chance8 - 8% chance9 - 5% chance10 - 5% chance\[/code\]How would I go about coding this up in \[code\]PHP\[/code\]?