private void run()
    {
        Map<String, Integer> commands = new HashMap<String, Integer>();
        commands.put("C1", 10);
        commands.put("C2", 10);
        commands.put("C3", 10);

        int c1 = 0;
        int c2 = 0;
        int c3 = 0;
        for (int i = 0; i < 10000; i++)
        {
            String r = getRandomCommandByWeight(commands, 10);
            if (r.equals("C1"))
            {
                c1++;
            }
            if (r.equals("C2"))
            {
                c2++;
            }
            if (r.equals("C3"))
            {
                c3++;
            }
        }
        System.out.println(c1);
        System.out.println(c2);
        System.out.println(c3);
    }