You can roll an electronic die repeatedly.
After each roll, as much dollars as the die shows are added to your heap,
which initially is empty. The game ends if either
you decide that the heap contains enough money, you take the heap money and go, or
if a "6" is rolled, in which case all the money already collected in the heap is lost.