Random Elements in Matrix || Python
In this we are going to see a basic program to generate Random Elements in Matrix with no. of rows and columns in Python Programming Language.


import numpy as np
import random as rd

randmat = np.random.randint(1, 100, size=(
    rd.randint(1, 10), rd.randint(1, 10)))
print(randmat)

# Coded by Saahil

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post