Meteor.méthodes renvoie undefined

Je suis en utilisant le météore de la version 0.6.4.

Meteor.methods({
  random: function(top){
    var random = Math.floor((Math.random()*(top+1)));
    return random;
  }
});

Il retourne undefined chaque fois que j'execute

Meteor.call('random', 10);

Des idées comment je peux contourner cela?

InformationsquelleAutor jaggy | 2013-07-04