How to implement this pseudocode as script

1 visualizzazione (ultimi 30 giorni)
n= a randomly chosen integer between 1 and 10^6

Risposta accettata

Jan
Jan il 7 Mar 2018
Modificato: Jan il 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.

Più risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by