Correct behavior for random transaction amounts is achieved.