Python Module random: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Python Language * Random Number Generation in Python =Overview=") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=External= | |||
* https://docs.python.org/3/library/random.html | |||
=Internal= | =Internal= | ||
* [[Python_Language#random|Python Language]] | * [[Python_Language#random|Python Language]] | ||
* [[Random Number Generation in Python#Overview|Random Number Generation in Python]] | * [[Random Number Generation in Python#Overview|Random Number Generation in Python]] | ||
=Overview= | =Overview= | ||
<syntaxhighlight lang='py'> | |||
import random | |||
print(random.randint(0, 10)) | |||
print(random.randrange(10)) | |||
</syntaxhighlight> |
Latest revision as of 00:40, 15 May 2024
External
Internal
Overview
import random
print(random.randint(0, 10))
print(random.randrange(10))