Using "rand" or "randn" with 'seed', state', or 'twister' inputs is no longer a recommended syntax. "rng" is encouraged instead. "rand" or "randn" will still run, but will use the legacy generator. Once "rand" or "randn" is used, "rng" cannot be used to reseed without reinitializing. More information on the encouraged syntax can be found in this article:
Best Answer