added: srand, getAmount