The program I'm trying to create is one where it asks for an amount of money, lets say 10 bucks. It will take the input and then randomly come up with an amount of change that equals the input. So for example if you were to enter 10 bucks it might come out with 1,000 pennies and if you were to in put that again it might come back with 100 dimes or a combination of change.
The problem I'm having is getting the amount of change to equal the input. I can get it to randomly come up with different amounts of change the problem is that it just doesn't the equal input. I should mention this is all done under one function, or the main function.