expyriment.design.randomize

The expyriment randomize module.

This module contains various functions for randomizing data

expyriment.design.randomize.coin_flip()[source]

Return randomly True or False. Returns ——- rnd : bool

expyriment.design.randomize.make_multiplied_shuffled_list(list_, xtimes)[source]

Return the multiplied and shuffled (sectionwise) list.

The function manifolds the list ‘xtimes’ and shuffles each and concatenates to the return new lists.

Parameters :

list_ : list

list to be shuffled

xtimes : int

how often the list will be multiplied

expyriment.design.randomize.rand_element(list_)[source]

Return a random element from a list

expyriment.design.randomize.rand_int(a, b)[source]

Return random integer in given range.

Parameters :

a : int

first element of range

b : int

last element of range

expyriment.design.randomize.rand_int_sequence(first_elem, last_elem)[source]

Return a randomised sequence of integers in given range.

Parameters :

first_elem : int

first element of the range

last_elem : int

last element of the range

expyriment.design.randomize.shuffle_list(list_)[source]

Shuffle any list of objects.

Parameters :

list_ : int

list to shuffle

Functions

expyriment.design.randomize.coin_flip()[source]

Return randomly True or False. Returns ——- rnd : bool

expyriment.design.randomize.make_multiplied_shuffled_list(list_, xtimes)[source]

Return the multiplied and shuffled (sectionwise) list.

The function manifolds the list ‘xtimes’ and shuffles each and concatenates to the return new lists.

Parameters :

list_ : list

list to be shuffled

xtimes : int

how often the list will be multiplied

expyriment.design.randomize.rand_element(list_)[source]

Return a random element from a list

expyriment.design.randomize.rand_int(a, b)[source]

Return random integer in given range.

Parameters :

a : int

first element of range

b : int

last element of range

expyriment.design.randomize.rand_int_sequence(first_elem, last_elem)[source]

Return a randomised sequence of integers in given range.

Parameters :

first_elem : int

first element of the range

last_elem : int

last element of the range

expyriment.design.randomize.shuffle_list(list_)[source]

Shuffle any list of objects.

Parameters :

list_ : int

list to shuffle

Table Of Contents

Previous topic

expyriment.design.permute

Next topic

expyriment.design.Block

This Page