magritton
12/6/2015 - 4:52 PM

Javascript unique guid value for an ID key

Javascript unique guid value for an ID key

function NewGuid()
         {
           var sGuid="";
           for (var i=0; i<32; i++)
            {
              sGuid+=Math.floor(Math.random()*0xF).toString(0xF);
            }
           return sGuid;
         }