Corrected problem with random values generation.
Merge branch 'master' of https://github.com/mlhim/tools