> ## Documentation Index
> Fetch the complete documentation index at: https://www.integrate.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ETL: Sample Transformation

> Use the Sample transformation to return a random percentage of input records for testing or data sampling in your Integrate.io ETL pipeline.

<Frame>
  <iframe src="https://fast.wistia.com/embed/iframe/gbjesxraav" allowfullscreen playinline class="wistia_embed" width="640" height="360" />
</Frame>

Use the **Sample** component to return a percentage of random records from the input.

<Frame>
  <img src="https://mintcdn.com/integrateio/HSGmKiO3soPLENmi/images/creating-packages/using-components-sample-transformation/image-1.png?fit=max&auto=format&n=HSGmKiO3soPLENmi&q=85&s=c4108183cd3c605020302980864c0ab3" alt="Sample component in the pipeline designer" width="1200" height="828" data-path="images/creating-packages/using-components-sample-transformation/image-1.png" />
</Frame>

<Note>
  **Note:**

  In contrast to the Limit component (which selects the first N records that you specify), the Sample component selects a "spread" (beginning, middle, end) of random records from the input.
</Note>

### To sample the number of records:

<Frame>
  <img src="https://mintcdn.com/integrateio/HSGmKiO3soPLENmi/images/creating-packages/using-components-sample-transformation/image-2.png?fit=max&auto=format&n=HSGmKiO3soPLENmi&q=85&s=f37330755bf96e2a1528395765822842" alt="Sample percentage configuration field" width="1200" height="828" data-path="images/creating-packages/using-components-sample-transformation/image-2.png" />
</Frame>

<Steps>
  <Step>
    Add a Sample component where required in your package.
  </Step>

  <Step>
    Open the component and name it.
  </Step>

  <Step>
    In **Output a random sample of data**, type the percentage of records you want to be selected. You can use non-integer numbers as a percentage.
  </Step>
</Steps>
