import random
from typing import List


class Solution:

    def __init__(self, nums: List[int]):
        self.array = nums[:]
        self.origin = nums[:]
        self.len = len(self.origin)

    def reset(self) ->List[int]:
        return self.origin

    def shuffle(self) ->List[int]:
        i = 0
        while i < self.len:
            j = random.randint(i, self.len - 1)
            temp = self.array[i]
            self.array[i] = self.array[j]
            self.array[j] = temp
            i += 1
        return self.array

17909a973fab707b510abc90636bb120895b5e0b
<mask token>


class Solution:

    def __init__(self, nums: List[int]):
        self.array = nums[:]
        self.origin = nums[:]
        self.len = len(self.origin)
    <mask token>
    <mask token>

<mask token>


class Solution:

    def __init__(self, nums: List[int]):
        self.array = nums[:]
        self.origin = nums[:]
        self.len = len(self.origin)
    <mask token>

    def shuffle(self) ->List[int]:
        i = 0
        while i < self.len:
            j = random.randint(i, self.len - 1)
            temp = self.array[i]
            self.array[i] = self.array[j]
            self.array[j] = temp
            i += 1
        return self.array

<mask token>


class Solution:

    def __init__(self, nums: List[int]):
        self.array = nums[:]
        self.origin = nums[:]
        self.len = len(self.origin)

    def reset(self) ->List[int]:
        return self.origin

    def shuffle(self) ->List[int]:
        i = 0
        while i < self.len:
            j = random.randint(i, self.len - 1)
            temp = self.array[i]
            self.array[i] = self.array[j]
            self.array[j] = temp
            i += 1
        return self.array

import random
from typing import List


class Solution:

    def __init__(self, nums: List[int]):
        self.array = nums[:]
        self.origin = nums[:]
        self.len = len(self.origin)

    def reset(self) ->List[int]:
        return self.origin

    def shuffle(self) ->List[int]:
        i = 0
        while i < self.len:
            j = random.randint(i, self.len - 1)
            temp = self.array[i]
            self.array[i] = self.array[j]
            self.array[j] = temp
            i += 1
        return self.array
