randomn range python code example
Example 1: python random integer in range
import random
print(random.randint(0,9))
Example 2: random in range
// Get a random number between 20 and 30
Math.round((Math.random() * (30 - 20 + 1)) + 20);
import random
print(random.randint(0,9))
// Get a random number between 20 and 30
Math.round((Math.random() * (30 - 20 + 1)) + 20);