This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Random.Order

List of Order Generators

Generators

order : Generator Order

Generate a random order with equal probability.

module Random.Order where
{-| List of Order Generators

# Generators
@docs order
-}

import Random exposing (Generator)
import Random.Extra exposing (selectWithDefault)

{-| Generate a random order with equal probability.
-}
order : Generator Order
order =
  selectWithDefault EQ
    [ LT
    , EQ
    , GT
    ]