Last active
September 6, 2020 16:05
-
-
Save SahbiOuali13/cd3334e9a33221eb5ee72c0a1ba04866 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint, uniform, randrange | |
# Randint make inclusiv calls, 5 is here included. It calls integers in the intervall 1-5 | |
a = randint(1,5) | |
# Uniforms is basically the same as Randint but call floats in the specified intervall | |
b = uniform(1,5) | |
# randrange makes exclusiv calls like range function, returns integers between 0 and 999 here, step can be specified | |
c = randrange (999) | |
d = randrange(5,999,2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment