jeudi 9 juillet 2015

Generate random numbers in Python but specific format [duplicate]

This question already has an answer here:

>>> import random
>>> random.sample(range(1, 100), 3)
[77, 52, 45]

this code provides me with the said output. how can I get the same results but in this form 77,52,45; ?? I'm a little new in python and don't know how to get myself around.

Thank you in advance




Aucun commentaire:

Enregistrer un commentaire