... TrainMode = BRUTE; iter_no = optimize(1, 0, 100, 1, 0); if(is(INITRUN)) seed(iter_no); var random_val = random(); ...