public void makeRelationsButtonActionPerformed(ActionEvent evt)
    {
        System.out.println("In make relationships");
        int k = stakeholders.size();
        for (Iterator<Stakeholder> s = stakeholders.iterator(); s.hasNext();)
        {
            Stakeholder stakeholder = s.next();
            int place = (int)Math.pow(2.0, (double)k);
            int random = (int) (Math.random()*place);
            place /= 2;
            System.out.println(random);
            for(int i = k-1; i >= 0; i--)
            {
                System.out.printf("if(%d >= %d)\n", random, place);
                if(random >= place)
                {
                    System.out.printf("%s.addI(%s)%n", stakeholder.getName(), stakeholders.get(i).getName());
                    stakeholder.addInfluence(stakeholders.get(i).getName(), (int)(Math.random()*4));
                    random -= place;
                }
                place /= 2;
            }
        }
    }