Need to pass Random value in header for each request and iteration

Hi Guys,

I am new for Gatling and Scala can someone help me how to pass the random values in header for each request and iteration, below are the pattern which i need to pass into the request header

HeaderIssue.PNG

Please help me

Make sure you pass a lambda, like this:

`
.header(“requestId”, _ => ThreadLocalRandom.current.nextInt(1, 500).toString)

`

Cheers!

Thanks Adam for quick response. Now I am able to generate random value.

if possible can you please help me how to integrate the gatling and docker through intellij IDE ?