Ejemplo: generar python de matriz de enteros aleatorios
import numpy as np
randi_arr = np.random.randint(start, end, dimensions)
#random integers will be sampled from [start, end) (end not inclusive)
#end is optional; if end is not specified, random integers will be sampled from [0, start) (start not inclusive)
#dimensions can be specified as shown here; (m,n) #2D array with size 'm x n'
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)