random

74

// Returns a number between 0 and 1
Math.random();
# import random
import random
  
# prints a random value from the list
list1 = [1, 2, 3, 4, 5, 6]
print(random.choice(list1))

Comments

Submit
0 Comments