Added support for random seed