Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
var primaryNumsCells = _.range(50);
var extraNumsCells = _.range(20);
var lottery = {lineConfigurations: []};
var numsConfig = {lineNumbers: {}};
    for( var i = 0; i < 2; i ++ ) {
      numsConfig.lineNumbers.primaryNumbers = _.sample(primaryNumsCells, 5);
      numsConfig.lineNumbers.secondaryNumbers = _.sample(extraNumsCells, 2);
      lottery.lineConfigurations.push(numsConfig);
    }
console.log(lottery);
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers