MATLAB Answers

Chuck37
0

How do I codegen rand() so the seed is set off the clock, or otherwise not the same every time?

Asked by Chuck37
on 1 Dec 2016
Latest activity Answered by Honglei Chen
on 1 Dec 2016
How can use codegen to make executables that don't make the same random numbers every time? rng('shuffle') and clock() are both unsupported in codegen. For example, if I just want to compile rand() into an executable and get a different number every time it is run (outside of matlab).

  0 Comments

Sign in to comment.

Tags