Post Reply 
Problem with RANDMAT consistency
04-06-2018, 07:02 PM
Post: #1
Problem with RANDMAT consistency
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
Find all posts by this user
Quote this message in a reply
04-06-2018, 10:26 PM (This post was last modified: 04-06-2018 10:27 PM by Arno K.)
Post: #2
RE: Problem with RANDMAT consistency
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
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)