Hi,
It seems I need the Random module to get randrange working, is there another way to get a “random” value from 1-10 ?
I’m playing some random xmas sounds (mp3’s defined in an array) on a trigger
Hi,
It seems I need the Random module to get randrange working, is there another way to get a “random” value from 1-10 ?
I’m playing some random xmas sounds (mp3’s defined in an array) on a trigger
Yeah but it does not seem to be a part of jython?
Using “x = random.randint(1,10)” gives:
NameError: name ‘random’ is not defined in …
Using “x = randint(1,10)”
NameError: name ‘randint’ is not defined in …
have you imported it at the top of the file?
import random
Geez, you guys are fast. You are correct, I forgot to import
Thanks!