Scroll a randomly placed game objects in puzzle

I’m new to unity and c# scripting, I need your help

I’m creating a jigsaw puzzle game for mobile, I divided the screen in half, the upper part is where the pieces should be placed (rightplace) and the lower part should be a scrolling area for a randomly placed pieces of this puzzle. so every time I start the game, I should have a scrolling area with different pieces of this puzzle.

I used this script to place the pieces randomly in a rectangle, but i don’t know how to make them placed in a scrolling panel.

void Start()
{
    //make pieces's positions random
    RightPosition = transform.position;
    transform.position = new Vector3(Random.Range(0.20f, 5.1f), Random.Range(-3.90f, -7.50f));
}

you need to try this code

using UnityEngine;
using UnityEngine.UI;

public class PuzzlePieceManager : MonoBehaviour
{
public GameObject puzzlePiecePrefab;
public RectTransform contentTransform;
public int numberOfPieces = 10;

void Start()
{
    for (int i = 0; i < numberOfPieces; i++)
    {
        // Instantiate puzzle piece prefab
        GameObject piece = Instantiate(puzzlePiecePrefab, contentTransform);

        // Set random position within the content area
        float randomX = Random.Range(0, contentTransform.rect.width);
        float randomY = Random.Range(0, -contentTransform.rect.height); // Negative for downward direction
        piece.GetComponent<RectTransform>().anchoredPosition = new Vector2(randomX, randomY);
    }
}

}