Can a random number being generated and split/divided into let say 3 individual numbers randomly in PHP? (so they add up to the random number)
Basically I have a random number (range from 0 to 15)
For example:
There are 14 available now
- 2 in Gotham City
- 8 in Lakeview Hills
- 4 in Eskimoville
(just a dummy to give you the idea)
Isn´t there a simple approach to accomplish this?
Have a nice weekend!