function _random($min, $max = NULL)
{
    return Underscore::random($min, $max);
}
Exemplo n.º 2
0
 /**
  * @tags utilities
  */
 public function testRandom()
 {
     $this->integer(_::random(10))->isLessThanOrEqualTo(10)->isGreaterThanOrEqualTo(0);
     $this->integer(_::random(5, 8))->isLessThanOrEqualTo(8)->isGreaterThanOrEqualTo(5);
 }