# Thoughts on how to move through a collection, but stopping and running x amount of APIs randomly from list of API calls before moving to the next API call

**URL:** <https://community.postman.com/t/thoughts-on-how-to-move-through-a-collection-but-stopping-and-running-x-amount-of-apis-randomly-from-list-of-api-calls-before-moving-to-the-next-api-call/8537>\
**Category:** Help Hub\
**Tags:** tests, loops, random\
**Created:** [October 23, 2019, 5:29pm UTC](https://community.postman.com/t/thoughts-on-how-to-move-through-a-collection-but-stopping-and-running-x-amount-of-apis-randomly-from-list-of-api-calls-before-moving-to-the-next-api-call/8537 "2019-10-23T17:29:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jonsworkalias](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jonsworkalias/32/3153_2.png) [@jonsworkalias](https://community.postman.com/u/jonsworkalias)\
**Post date:** [October 23, 2019, 6:48pm UTC](https://community.postman.com/t/thoughts-on-how-to-move-through-a-collection-but-stopping-and-running-x-amount-of-apis-randomly-from-list-of-api-calls-before-moving-to-the-next-api-call/8537/2 "2019-10-23T18:48:09Z")

</div>

I have not used the setNextRequest, but I have used a function to make a **sendRequest** call against a list of values.

see this comment I made - [How Can One Terminate Executing a Request From Within Pre-Request Script?](https://community.postman.com/t/how-can-one-terminate-executing-a-request-from-within-pre-request-script/7432/4)

---

_[View the full topic](https://community.postman.com/t/thoughts-on-how-to-move-through-a-collection-but-stopping-and-running-x-amount-of-apis-randomly-from-list-of-api-calls-before-moving-to-the-next-api-call/8537)._
