public function testQuickModCheckForOdd() { $rnd = rand() % 32767 * 2 + 1; // it has to be odd... $evenNumber = new \MyOddWeb\BigNumber($rnd); $this->assertFalse($evenNumber->IsEven()); // it has to be odd... $this->assertSame(1, $evenNumber->Mod(2)->ToInt()); }