impl and test rademacher distribution