python:hasard:start

Ceci est une ancienne révision du document !


Hasard

http://www.python-simple.com/python-modules-math/random.php

random.random() : valeur entre 0 et 1, 1 exclus.


random.randint(0, 3) : entier entre 0 et 3 inclus.

random.choice(['a', 'b', 'c'])

  • python/hasard/start.1570895578.txt.gz
  • Dernière modification : 2020/07/24 00:23
  • (modification externe)