"Hack" (ascii terminal game from BSD days) randomly distributes gold through the levels. Players and certain monsters take the gold when they find it (Leprechauns steal it right from a players pockets). When you kill a monster carrying gold, you can then take it. No new gold is generated.