MATLAB Answers

how do I generate new random number every time I run a exe file?

11 views (last 30 days)
I wrote a code that uses randi () and created an .exe file from that code.
When I run the .m file from the Matlab I get a random number every time I run the program, but when I run it from the .exe file I got the same number every time.
How do I get it to generate a new random number every time I run the .exe file?

  0 Comments

Sign in to comment.

Accepted Answer

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!