Let's say that I input the following:
# Records: 5
Total Cost: 800
Then It should Output something like this: (Record Name and Price is from a database while Quantity is randomly generated)
As of now the random selection of records and quantity works, but I have no idea on how to make the total cost equal up too. Will looping the quantity randomization work or will it just make an endless loop? Does it have to use a really complex selection system or what?