I'm trying to create a list of random numbers in python. I managed to create it but I just want to see the int () type and I see all types of float (), does anyone know what I can do? This is what I did:
import random
def listaAleatorios(n):
lista = [0] * n
for i in range(n):
lista[i] = random.random()
return lista
print("Ingrese cuantos numeros aleatorios desea obtener")
n=int(input())
aleatorios=listaAleatorios(n)
print(aleatorios)