# How to add a random value for a timestamp to the header

**URL:** <https://community.gatling.io/t/how-to-add-a-random-value-for-a-timestamp-to-the-header/5407>\
**Category:** Gatling (Open-Source)\
**Created:** [December 20, 2019, 12:18pm UTC](https://community.gatling.io/t/how-to-add-a-random-value-for-a-timestamp-to-the-header/5407 "2019-12-20T12:18:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user6](https://avatars.discourse-cdn.com/v4/letter/u/f1d935/32.png) [@user6](https://community.gatling.io/u/user6)\
**Post date:** [December 20, 2019, 12:18pm UTC](https://community.gatling.io/t/how-to-add-a-random-value-for-a-timestamp-to-the-header/5407/1 "2019-12-20T12:18:11Z")

</div>

Hello to everyone.

I’m pretty new in the using of Gatling and now i’m confused with a question if it possible to add a random value of timestamp to the header that for every user that value would be different?  
For an instance:

`Введите код...val headers_49 = Map(`

```auto
 "Accept" -> "application/json, text/plain, */*",
 "Accept-Encoding" -> "gzip, deflate, br",
 "Accept-Language" -> "ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7",
 "Content-Length" -> "0",
 "Content-Type" -> "application/json;charset=UTF-8",
 "client-capabilities" -> "authentication=13.19.2",
 "client-operation-id" -> "1576756499120"
)

```

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [December 21, 2019, 9:52am UTC](https://community.gatling.io/t/how-to-add-a-random-value-for-a-timestamp-to-the-header/5407/2 "2019-12-21T09:52:00Z")

</div>

.header(“timestamp”, \_ =\> System.currentTimeMillis())
