Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I need to generate random integers in blender game engine using python. I don't want to use logic bricks for random generation. I just want plain python.
I'm using this to make something randomly select a sound to play.
Just regular old python, randint. Nothing special blender related for this one.
You also could use the Random actuator. (but the pure python is simpler.)
Required, but never shown