Is it possible to use rand in a matrix and include a range? I know it is possible with a vector, but I wanted to see if it was possible in a matrix. Thank you!
For this to work you need to set your intial MIN_VALUE to inf rather than 0. If its set to zero, it will only make output if you send it a negative number, otherwise it will never go into that if statement.
Best Answer