Add code for rng initialization for older matlabs