
Por el momento uso el siguiente codigo para llenar los numeros aleatoriamente
Código PHP:
Public Class Ejercicio2Matrices
Const filas = 10, colum = 10
Código PHP:
Dim matriz(filas, colum) As Short
Sub llenar()
Randomize()
For x As Short = 1 To filas
For y As Short = 1 To colum
matriz(x, y) = CInt(Rnd() * 20)
Next
Next
End Sub
Código PHP:
Sub mostrar()
dgvlista.RowCount = filas
dgvlista.ColumnCount = colum
For x As Short = 1 To filas
For y As Short = 1 To colum
dgvlista.Rows(x - 1).Cells(y - 1).Value = matriz(x, y)
Next
Next
End Sub