HP Forums
Problem with RANDMAT consistency - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Problem with RANDMAT consistency (/thread-10455.html)



Problem with RANDMAT consistency - John P - 04-06-2018 07:02 PM

1.When I use RANDMAT(m1,4,3,1,10) it gives me m1 that has as elements integer numbers between -99 and 99.
2.When using RANDMAT(4,3,1,10) it gives me a matrix that has the elements between 1 and 10 and that is correct.

Shouldn't the RANDMAT behave in case 1 the same way as in case 2 ie. to give me the entries in the range 1 to 10 as I want? I think that would be more consistent.

Cheers


RE: Problem with RANDMAT consistency - Arno K - 04-06-2018 10:26 PM

It seems that RANDMAT(m1,...) simply ignores the last 2 parameters, which it shoudn't concerning the Help. Perhaps you may use ranm(rows,cols,...) instead or m1:=RANDMAT(...).
Arno