0

Possible Duplicate:
How to set custom seed for pseudo-random number generator

I'm trying to set the seed generator for rand() function in Matlab but I didn't find the way.Someone could help me?Despite I read the help for that function I didn't understand how set this value.

Community
  • 1
  • 1
user1508419
  • 333
  • 1
  • 4
  • 14

1 Answers1

3

The function rng is used to set the seed.

rng(seed)

dustincarr
  • 1,365
  • 1
  • 9
  • 14