MATLAB Answers

How to implement this pseudocode as script

2 views (last 30 days)
Raiven Balderas
Raiven Balderas on 7 Mar 2018
Edited: Jan on 7 Mar 2018
n= a randomly chosen integer between 1 and 10^6

  0 Comments

Sign in to comment.

Accepted Answer

Jan
Jan on 7 Mar 2018
Edited: Jan on 7 Mar 2018
n = randi([1, 1e6], 1)
You can find this by your own, if you ask an internet search engine for "Matlab random integer". One of the links is the documentation of randi.

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags