Registered Member
|
Hi, is there any way to set a interval of numbers in the function setRandom()? I need to create random matrices with positive and interger numbers.
Thanks. |
Moderator
|
no, but you can post-process the result to scale it, offset-it, take the absolute values, call .floor(), convert from int to float, from float to int, etc.
|
Registered users: Baidu [Spider], Bing [Bot], Google [Bot]