> For the complete documentation index, see [llms.txt](https://hi-primus.gitbook.io/bumblebee/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hi-primus.gitbook.io/bumblebee/transformations/transformation-functions/machine-learning/sample_n.md).

# Random sampling

Gets a random sample of the dataset.

## Location

![Random sampling on the interface](https://1348350781-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MV2mHcaOiKNDfEbfXux%2Fsync%2F56e5ef7d5ea137beaee7f1672e0e14691369293c.png?generation=1618272350495873\&alt=media)

## Fields

| Field             | Type    | Description |
| ----------------- | ------- | ----------- |
| Number of samples | Numeric |             |

## Example

![Random sampling fields](https://1348350781-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MV2mHcaOiKNDfEbfXux%2Fsync%2Fd512b68056a8472cb54df7b354ac321c85a88c7a.png?generation=1618272349820799\&alt=media) ![Random sampling example](https://1348350781-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MV2mHcaOiKNDfEbfXux%2Fsync%2F3c47813528a298e0e37a1ac9d01a77d413aa0172.png?generation=1618272344538443\&alt=media)
