fixed random in get_random_outs_for_amounts(suggested by otila), fixed typo(thanks to othe)