Info

此问题已关闭。 请重新打开它进行编辑或回答。

Output value doesn't change for different inputs to muPad procedure

1 次查看(过去 30 天)
I am using MATLAB procedures to generate a 1024 bit number randomly. I am using this code for it.
z:=26;num:=1;
while z>0 do
num:=num*random();
z:=z-1;
end_while;
Thus, 'num' will be random()^26.
I call this procedure in my MATLAB code. Since 'num' is a random number it should change every time i call the procedure. But it doesn't. I get only one value for 'num' always.
Where am I going wrong? And how can i correct it?
Thank you for your time and help.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by