public function MathfieldTestCase::randInteger in Math Field 7
Generate a random integer between -1000 and 1000.
8 calls to MathfieldTestCase::randInteger()
- MathfieldTestCase::createField in ./
mathfield.test - Create a number field and instance.
- MathfieldTestCase::randFloat in ./
mathfield.test - Generate a random float between -1000 and 1000 with 2 decimal places.
- MathfieldTokenTestCase::testMathfieldAdvancedTokens in ./
mathfield.test - Tests advanced tokens in math expression fields.
- MathfieldTokenTestCase::testMathfieldBasicTokens in ./
mathfield.test - Tests basic tokens in math expression fields.
- MathfieldTokenTestCase::testMathfieldDefaultTokens in ./
mathfield.test - Tests using another math field as a tokens in a math expression.
File
- ./
mathfield.test, line 31 - Tests for mathfield.module.
Class
- MathfieldTestCase
- Base class for testing the mathfield module.
Code
public function randInteger($min = -1000, $max = 1000) {
return mt_rand($min, $max);
}