Random

Fixed the random function.  When using random i get curl exit status
'2' returns periodically so will need to look into that.  The curl
errors does not alter the statistics however