Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Random Number in JavaScript</title>
<!--[if IE]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
  article, aside, figure, footer, header, hgroup, 
  menu, nav, section { display: block; }
</style>
</head>
<body>
<div>
<div></div>Demo created by 
    <a href="http://www.devcurry.com" target="_blank">DevCurry.com</a>
</div>
</body>
</html>
 
var min;
min = 0;
var max; 
max = 22;
var randomNumber = Math.floor(Math.random()*(100-33+1)) + 33;
if(!isNaN(randomNumber)) {
  console.log(randomNumber);
}
var apa = document.body;
apa.innerHTML = '<p>'+randomNumber+'</p>';
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers