Hi,
im new to Simulink so please be easy on me with u'r answers.
I need to generate a number with in the [1,5] values and i need the number to be different every simulation, is there any comand to generate a random seed and not get the same seed every simulation.
I know i can change the seed manual in the random blook, but this is not a good solution for my problem, i need the random to be "Monte Carlo" style.
Thank you.
Comments
I made a simple simulation that has only a random number block and a scope , I ran the simulation 3 times, each time the scope had shown the same 3 numbers.
What i need is that in every simulation i'll get different numbers.
Thank you.
im sorry but like ur last solution this one didnt work as well.
I made a simple simulation that has an embedded matlab function blook
and a scope, the matlab funtion i wrote was :
function y = fcn()
% This block supports the Embedded MATLAB subset.
% See the help menu for details.
y = rand(1);
//end of function
The scope had shown me the same result in each simulation i ran.
Thank you.
I try this
constant (1) --> Matlab function (rand) --> scope.
It gives me always different values