added timing
Merge https://github.com/metulburr/random
added timing