I need to generate a random MAC address for a project of mine, and I can not get it to work. Below is my current code (that is not working).
function genMAC(){ /
"XX:XX:XX:XX:XX:XX".replace(/X/g, function() { return "0123456789ABCDEF".charAt(Math.floor(Math.random() * 16)) });
jsfiddle http://jsfiddle.net/guest271314/qhbC9/