def METHOD_NAME(
    database: AllRepositories,
    search_units: list[IngredientUnit],  # required so database is populated
    unique_local_group_id: str,
):
    repo = database.ingredient_units.by_group(unique_local_group_id)
    pagination = PaginationQuery(
        page=1,
        per_page=-1,
        order_by="random",
        pagination_seed=str(datetime.now()),
        order_direction=OrderDirection.asc,
    )
    random_ordered = []
    for _ in range(5):
        pagination.pagination_seed = str(datetime.now())
        random_ordered.append(repo.page_all(pagination, search="unit").items)
    assert not all(i == random_ordered[0] for i in random_ordered)