jeudi 27 juillet 2023

How to create a list of random numbers in c++ like in python

In Python I use the following function to create a list of random numbers between a range and with an amount of numbers. In this case the function throws me: 100 random numbers between 1 and 50.

randnums1= list(np.random.randint(1,50,100))

I want to know how to generate a list of random numbers between a range and with an amount of numbers




Aucun commentaire:

Enregistrer un commentaire