Fixed random lists?

Hi there,

I wonder if it’s possible within python to get continuous behavior with randint. In order to generate a forest of trees with randomized positions, orientations, etc. , do I have to work with fixed lists of random numbers in order to get the same result each time I start the game? I hope you know what I mean. I could post an example if that would be needed.

Thanks,

Here is an example. As you can see the forest changes every time you start the game, which is unfortunate.

Attachments

Forest0.blend (185 KB)

Have a look into random.seed(seed)

It’s so easy?!

Thanks a lot agoose77

Attachments

Forest1.blend (183 KB)

powerful this seed()!!

PS: verycool the blend, another one :slight_smile: