Class RandomChooserTest


  • public class RandomChooserTest
    extends Object
    Author:
    paul
    • Constructor Detail

      • RandomChooserTest

        public RandomChooserTest()
    • Method Detail

      • testChooseRandomDeck

        public void testChooseRandomDeck()
      • testChooserandomInts

        public void testChooserandomInts()
      • testRandomSubset

        public void testRandomSubset()
      • testRepeat

        public void testRepeat()
        Check correctness of the sampling algorithm for choosing subsets of size 2. The average value should come out close to k/2.
      • testRepeatSubset

        public void testRepeatSubset()
        Check correctness of the sampling algorithm for choosing subsets of size 2. The average value should come out very close to k/2.