Quest rewards

I'm going through the dialog of some quests that MP had written, and i got the idea to add some randomness to monetary rewards, so instead of a certain outcome always giving 5000 Denars, it'd be 5000 +/- %. Is this possible from a coding standpoint?