Hey guys, I'm having some trouble with this program. The program should work like this  It asks the user to input 3 data, # of records, total quantity and total cost  From an existing database (with ID, recordname, price) it will select random records until it has achieved the number of records inputted by the user (records already picked can be picked again)  each selected record is then paired with a random quantity, the sum of all the quantities shall be equal to the amount inputted by the user  the price is multiplied by the amount paired to the record and will be the cost, the sum of all the cost should be equal to the one inputted by the user. So that's it. I have tried so many times but to no avail. I don't need codes, I just need someone to guide me on how the program should flow for it to work.