How do I codegen rand() so the seed is set off the clock, or otherwise not the same every time?
조회 수: 4 (최근 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
참고 항목
카테고리
Help Center 및 File Exchange에서 Input Specification에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!