How do I codegen rand() so the seed is set off the clock, or otherwise not the same every time?
17 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Honglei Chen
2016 年 12 月 1 日
There are some relevant discussions here
MATLAB Coder is mentioned at the end.
HTH
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!