requirejs

Load Chance with RequireJS

  require(['Chance'], function(Chance) {
    // Instantiate
    var chance = new Chance();

    // Then use it:
    var my_random_integer = chance.integer();
  });