Note

You are not reading the stable version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

draw

gammapy.utils.random.draw(low, high, size, dist, random_state='random-seed', *args, **kwargs)[source]

Allows drawing of random numbers from any distribution.