generating output from randomized dictionary