samedi 16 octobre 2021

How to create the table with 100 numbers where each number should be a sum of the previous number [closed]

How can I create the table with 100 numbers where each number should be a sum of the previous number and the value drawn from the random set (-1, 1) using NumPy and start from 0. For example:

[0, 0 + np.random.uniform(low=-1, high=1), previous number + np.random.uniform(low=-1, high=1),...]




Aucun commentaire:

Enregistrer un commentaire