Random number generator

For general discussion related FlowStone
Post Reply
User avatar
TeslaTronik
Posts: 35
Joined: Mon Dec 20, 2010 12:12 am
Contact:

Random number generator

Post 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.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Random number generator

Post 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
"There lies the dog buried" (German saying translated literally)
BobF
Posts: 598
Joined: Mon Apr 20, 2015 9:54 pm

Re: Random number generator

Post by BobF »

Hello TeslaTronik,

Try these and see how they work for you!

BobsRandNumberGenerators.fsm
(186.3 KiB) Downloaded 851 times


Later then, BobF.....
User avatar
TeslaTronik
Posts: 35
Joined: Mon Dec 20, 2010 12:12 am
Contact:

Re: Random number generator

Post 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.
Post Reply