mardi 3 octobre 2017

random.shuffle(points).take(k) in Python

What is the equivalent of this Scala line in Python?

 random.shuffle(points).take(k)

I don't seem to find the take method for shuffle in Python




Aucun commentaire:

Enregistrer un commentaire