import random as rnd


def random_permutation(iterable, r=None):
    pool = tuple(iterable)
    r = len(pool) if r is None else r
    return tuple(rnd.sample(pool, r))


def random_shuffle(members):
    rnd.shuffle(members)
    return tuple(members)

bf4c4d2d582917b4ff4de6d40f20b1f1f5524368
<mask token>

<mask token>


def random_permutation(iterable, r=None):
    pool = tuple(iterable)
    r = len(pool) if r is None else r
    return tuple(rnd.sample(pool, r))


<mask token>

<mask token>


def random_permutation(iterable, r=None):
    pool = tuple(iterable)
    r = len(pool) if r is None else r
    return tuple(rnd.sample(pool, r))


def random_shuffle(members):
    rnd.shuffle(members)
    return tuple(members)

import random as rnd


def random_permutation(iterable, r=None):
    pool = tuple(iterable)
    r = len(pool) if r is None else r
    return tuple(rnd.sample(pool, r))


def random_shuffle(members):
    rnd.shuffle(members)
    return tuple(members)
