# How to pick multiple rows from csv feeder in each session

**URL:** <https://community.gatling.io/t/how-to-pick-multiple-rows-from-csv-feeder-in-each-session/2195>\
**Category:** Gatling (Open-Source)\
**Created:** [April 10, 2015, 9:48pm UTC](https://community.gatling.io/t/how-to-pick-multiple-rows-from-csv-feeder-in-each-session/2195 "2015-04-10T21:48:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Ouyang\_Z](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@Eric\_Ouyang\_Z](https://community.gatling.io/u/Eric_Ouyang_Z)\
**Post date:** [April 10, 2015, 9:48pm UTC](https://community.gatling.io/t/how-to-pick-multiple-rows-from-csv-feeder-in-each-session/2195/1 "2015-04-10T21:48:37Z")

</div>

Hi,

I searched in the group for a solution but I haven’t found one so post the question here.

I have a csv file with 50,000 rows, and with header such as ID NAME.

My load test needs in each session, to randomly pick 10 rows, to add them into a collection such as Array of Maps, them use the Array of Maps to construct my request body for the POST call.

I know how to get one row randomly from the feeder but don’t know how to get 10 rows randomly for each session.

Any sample code to do it?

Thanks.

Eric

---

<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:** [April 11, 2015, 8:34am UTC](https://community.gatling.io/t/how-to-pick-multiple-rows-from-csv-feeder-in-each-session/2195/2 "2015-04-11T08:34:13Z")

</div>

See doc, first note: [http://gatling.io/docs/2.1.4/session/feeder.html#feeders](http://gatling.io/docs/2.1.4/session/feeder.html#feeders)

---

<div class="post-metadata">

**Author:** ![Eric\_Ouyang\_Z](https://avatars.discourse-cdn.com/v4/letter/e/cab0a1/32.png) [@Eric\_Ouyang\_Z](https://community.gatling.io/u/Eric_Ouyang_Z)\
**Post date:** [April 13, 2015, 11:06pm UTC](https://community.gatling.io/t/how-to-pick-multiple-rows-from-csv-feeder-in-each-session/2195/3 "2015-04-13T23:06:12Z")

</div>

Thanks Stephane.
