add unit tests for some CMath::random functions