# Get N Items In Generic List

![](https://692276616-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN06Vv6nlwviUQ4hI2Kkd%2Fuploads%2Fgit-blob-009fc6a39d42a6e5c3c4dae7f4d11ccfc19c8439%2Fget-n-items-in-generic-list.png?alt=media)

## Description

Gets the first, last, or random N items from Any List based off the Item Count Type

## Node Type

Nodes fall into two basic categories: Data and Execution. This node supplies Data for an Execution node.

## Inputs

| Input           | Type       | Required | Description                                           |
| --------------- | ---------- | -------- | ----------------------------------------------------- |
| Any List        | List       | Yes      | Which list to add item to.                            |
| Item Count      | Number     | Yes      | How many items to get from the list.                  |
| Item Count Type | Count Type | Yes      | Choose to grab how many first, last, or random items. |

## Outputs

| Output           | Type         | Description                                           |
| ---------------- | ------------ | ----------------------------------------------------- |
| New Generic List | Generic List | A new list also holding items grabbed from this list. |

\
\
**Contributors**

AddiCt3d 2CHa0s
