Thank jmcilhinney for your advice. ... I found the solution...
Private mRand As New Random
Private rndMatrix As Integer(,)
Public Sub BuildMatrix(rows As Integer, columns As Integer)
ReDim rndMatrix(rows, columns)
For x = 0 To rows
Dim valu = mRand.Next(0...
In MATLAB "randi([0 1], 5,5)" command generates 5 x 5 binary matrix. But i am not finding any suitable code for creating random binary matrix in vb.net
Hello Everyone. I would like to create a random binary matrix ( only 0 and 1) of any size of row and column in vb.net. I am not getting any suitable code for that. Any help will be highly appreciable.
Regards.
Tariq
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.