python:hasard:start

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.txt
  • Dernière modification : 2020/07/24 03:31
  • de 127.0.0.1