Some cleanup related to mt_rand()

- min and max values are 0 and mt_getrandmax() by default
- remove useless mt_srand() seed calls
Merge pull request #2369 from vlakoff/develop-2

Some cleanup related to mt_rand()