added manual random seed initalisation