I am in need use 23 digit number in a url. I am generating number using Math.random() but I get the result in exponential form.
My code is
var id =
JavaScript numbers are not precise enough for that. You will never be able to get full 23 random digits. It would be easier getting a several smaller numbers and pasting them together as a string.