jeudi 19 décembre 2019

Does random.shuffle() uses uniform distribution?

I am using the following shuffling algorithm in my code to shuffle a list. But I would like to know what sort of distribution is assumed in random.shuffle().

import random

random.shuffle(x)

where x is a list.

I read somewhere that random function in general uses uniform distribution but I could not find any clear information on random function page for random.shuffle

Does anyone know?




Aucun commentaire:

Enregistrer un commentaire