Search code examples
randomelementjmeterconfigseed

What are the available value(s) for "seed for Randome Function" used in JMeter for Random Variable config Element


Need to know what are the available value(s) for "seed for Random Function" used in JMeter for Random Variable config Element. (It would be better with examples)


Solution

  • A seed is a value used to generate random output on. As a random number function is really just a function, the "random" value being output is always based on the seed. In other words, if you seed the random output generator with the same seed value, you will get the same "random" result. This is why most random number generators use the system time to seed themselves, as that is highly variable.

    Now back to your question. If you specify a seed, you will get fixed random output. This makes it easy for you to repeat the test with the exact same random values, just pass in the same seed.