Module

Faker.Number

Package
purescript-faker-ffi
Repository
philippedev101/purescript-faker-ffi

#int Source

int :: Gen Int

Generate a random integer with default options.

#intRange Source

intRange :: IntRangeOpts -> Gen Int

Generate a random integer within a range.

#IntRangeOpts Source

type IntRangeOpts = { max :: Int, min :: Int }

#intOpts Source

intOpts :: IntOpts -> Gen Int

Generate a random integer with full options (min, max, multipleOf).

#IntOpts Source

type IntOpts = { max :: Int, min :: Int, multipleOf :: Int }

#float Source

float :: Gen Number

Generate a random float with default options (0.0 to 1.0).

#floatRange Source

floatRange :: FloatRangeOpts -> Gen Number

Generate a random float within a range.

#FloatRangeOpts Source

type FloatRangeOpts = { max :: Number, min :: Number }

#floatOpts Source

floatOpts :: FloatOpts -> Gen Number

Generate a random float with full options (min, max, fractionDigits).

#FloatOpts Source

type FloatOpts = { fractionDigits :: Int, max :: Number, min :: Number }

#binary Source

binary :: Gen String

Generate a random binary string with default range.

#binaryRange Source

binaryRange :: RangeOpts -> Gen String

Generate a random binary string within a range.

#octal Source

octal :: Gen String

Generate a random octal string with default range.

#octalRange Source

octalRange :: RangeOpts -> Gen String

Generate a random octal string within a range.

#hex Source

hex :: Gen String

Generate a random hex string with default range.

#hexRange Source

hexRange :: RangeOpts -> Gen String

Generate a random hex string within a range.

#romanNumeral Source

romanNumeral :: Gen String

Generate a random Roman numeral with default range.

#romanNumeralRange Source

romanNumeralRange :: RangeOpts -> Gen String

Generate a random Roman numeral within a range.

#RangeOpts Source

type RangeOpts = { max :: Int, min :: Int }