Page 1 of 1

Random number generator

Posted: Sun Mar 24, 2019 6:57 pm
by TeslaTronik
Im using Rand Module to make a Random number generator, i assumed the seed option would allow for the input of a seed then a sequence of random number based of that seed, bbut it does not work how i expect. to clarify i want to input a value or string as a seed and based of that seed the random numbers should always have the same sequence.

I.E-- Seed = egg : result = 1,,5,33,7,,5,6,3,4...ect.. so egg should always produce this sequence.

Any idea how i can get this behaviour?

Thanks.

Re: Random number generator

Posted: Mon Mar 25, 2019 3:13 am
by tulamide
Hmm, I'm not sure where your issues come from, but the rand prim does exactly that!

I don't have access to FS3 right now, but if you recreate the screenshot (I've set up 2 seeds, you can freely choose to always use the same, or alternate as you see fit), it should work.

Image

Re: Random number generator

Posted: Mon Mar 25, 2019 8:47 pm
by BobF
Hello TeslaTronik,

Try these and see how they work for you!

BobsRandNumberGenerators.fsm
(186.3 KiB) Downloaded 850 times


Later then, BobF.....

Re: Random number generator

Posted: Mon Mar 25, 2019 10:39 pm
by TeslaTronik
@ tulamide, Yes you are correct, it was the method of how i hooked it up which was wrong. thank you.

@Bobf thanks i will take a look at these :),, i love the idea of randomly generated parameters and sounds.. so the more methods the better.