Skip to content

Proposition::floatRange()

Jonathan Gjertsen edited this page Jun 18, 2017 · 4 revisions

Syntax

$proposition->given(Proposition::floatRange($min, $max));

Provides a stream of floats uniformly distributed between $min (inclusive) and $max (inclusive).

Throws an Exception if $max is less than $min.