title: How Can i set google map marker color randomly?
body: <p>i am beginner in javascript now i am working in tracking application project.now i want to change google map marker color randomly.here is my code</p>
  
  <pre><code>if(type == 'user')
            {
            var marker = new google.maps.Marker({
              map: map,
               icon: 'http://maps.google.com/mapfiles/ms/icons/yellow.png',
              position: point,
              label: icon.label
            });
          }
          else
          {
             var marker = new google.maps.Marker({
              map: map,
               icon: 'http://maps.google.com/mapfiles/ms/icons/green.png',
              position: point,
              label: icon.label
            });
             // var pt = new google.maps.LatLng(point);
  
          }
  
            marker.addListener('click', function() {
              infoWindow.setContent(infowincontent);
              infoWindow.open(map, marker);
            });
          });
        });
      }
  </code></pre>
  
  <p>i getting lot of user in same color in google map.now i want to change marker color randomly.any one please help  me.</p>