reassesslib.utils.random_draw

reassesslib.utils.random_draw(x=None)

Samples from the numbers from 1 to 5, with a biased distribution based on the input.

The input should be:
  • a python integer

  • an even number

  • greater than 0

Parameters:

x (python integer meeting conditions above) – distribution parameter

Returns:

A single random draw from the resultant distribution.