Randomization test and its application