seeded_rand: update funtion to ensure it returns an int not String
Ref: https://github.com/puppetlabs/puppet/commit/3dcf66bb547