set random seed and etc