0
what inbuilt function can we use for random number generation?
generate random numbers
10 Réponses
+ 2
random.randint(from,to)
random.randint(1,10) will automatically select a random integer between 1 and 10.
+ 2
inclusive or exclusive of the bounds? and also how do I ensure my input is a number?
+ 2
copy that, thanks
+ 2
cool #sayan chandra
+ 1
so it's between 'from' and 'to -1' huh?
+ 1
in between "from" and "to"
+ 1
inclusive of the bounds
0
random.randint(a,b)
means a to b
random.randrange(a,b)
means a to b-1
- 1
i think u mistyped the name😐##
- 1
😂😂😂😂😂😂