Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
Your freshly-generated instance secret is: <input type="text" id="secret">
</body>
</html>
 
var text = "";
var possible = "abcdef0123456789";
// thanks SO 1349426
for(var i=0; i < 32; i++) {
  text += (possible.charAt(Math.floor(Math.random() * possible.length)));
}
document.getElementById("secret").setAttribute("value", text);
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers