quipper-utils-0.9.0.0: Utility libraries for Quipper.

Safe HaskellSafe
LanguageHaskell98

Quipper.Utils.RandomSource

Description

This module provides a container type for sources of randomness. This makes it possible for a source of randomness (any instance of the RandomGen class) to be stored in a data structure without having to specify its type explicitly.

Synopsis

Documentation

data RandomSource where Source #

A container type to hold a source of randomness. This can hold any instance of the RandomGen class.

Constructors

RandomSource :: forall g. RandomGen g => g -> RandomSource