Improve performance of PrettyPrinter

uniq_id is a _terribly_ slow function, and as it seems is only used
to generate a random non-occurring value. As such I replaced it 
with a similar statement that is far less unique but should do
the same in a fraction of the time.