public void randomFunction(){
        int red = (int)(Math.random()*3);
        if(red == 0){
            redNode = new Sin((int)(Math.random()*8+4));
        }
        else if(red == 1){
            redNode = new Cos((int)(Math.random()*8+4));
        }
        else if(red == 2){
            redNode = new Average((int)(Math.random()*8+4));
        }
        
        int green = (int)(Math.random()*3);
        if(green == 0){
            greenNode = new Sin((int)(Math.random()*8+4));
        }
        else if(green == 1){
            greenNode = new Cos((int)(Math.random()*8+4));
        }
        else if(green == 2){
            greenNode = new Average((int)(Math.random()*8+4));
        }
        
        int blue =(int)(Math.random()*3);
         if(blue == 0){
            blueNode = new Sin((int)(Math.random()*8+4));
            
        }
        else if(blue == 1){
            blueNode = new Cos((int)(Math.random()*8+4));
        }
        else if(blue == 2){
            blueNode = new Average((int)(Math.random()*8+4));
        }
       }