Can I generate a random string, number, or UUID/GUID in my script?

Sometimes it’s necessary to generate a random string, number, or UUID/GUID in your load test script.

To do this, you can call any of these functions:

  • randomalpha(len)
  • randomnumeric(len)
  • randomalphanumeric(len)
  • uuid()

They need to be escaped using Loadster’s standard expression syntax, like this:

${uuid()}

More information is available in Variables & Expressions.