Skip to content

Instantly share code, notes, and snippets.

@SahbiOuali13
Last active September 6, 2020 16:05
Show Gist options
  • Save SahbiOuali13/cd3334e9a33221eb5ee72c0a1ba04866 to your computer and use it in GitHub Desktop.
Save SahbiOuali13/cd3334e9a33221eb5ee72c0a1ba04866 to your computer and use it in GitHub Desktop.
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