hey i'm new with this and I'm trying to implement a button to generate a location polyline. i got the code from here https://github.com/Moneemsaadaoui/Gradientpoly. and the code to generate a polyline like this.
 generate.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            double randomValuex = 36.046851 + ((36.203712 - 36.046851) * r.nextDouble());
            double randomValuex2 = 36.046851 + ((36.203712 - 36.046851) * r.nextDouble());
            double randomValuey = 8.269289 + ((10.486982 - 8.269289) * r.nextDouble());
            double randomValuey2 = 8.269289 + ((10.486982 - 8.269289) * r.nextDouble());
            from = new LatLng(randomValuex, randomValuey);
            to = new LatLng(randomValuex2, randomValuey2);
            //Setting up our awesome gradient 
            gradientPoly.setApiKey("API_KEY")
                    .setStartPoint(from).setEndPoint(to)
                    .setStartColor(Color.parseColor("#1eb5ab"))
                    .setWidth(11).setEndColor(Color.parseColor("#ff0098"))
                    .DrawPolyline();
        }
    });
my question is how to change Random Generate location To some location that I have specified (fixed location)? sorry for my bad english.
 
    