random mathematical hacks