samedi 23 avril 2022

How can I randomize a list with a certain degree of noise?

If I have a list, say, [1,2,3,4,5], how can I introduce a certain amount of noise to this list?

For example, a high degree of noise would be something completely random. An adversarial noise would be [5,4,3,2,1] A low degree of noise would be [2,1,3,4,5]

Thoughts?




Aucun commentaire:

Enregistrer un commentaire