j0hnik,
var guess = function() {
var b = Math.random,
a;
Math.random = function() {
a = b();
guess = Math.floor(100 * a + 1);
return a
}
}();
console.log(Math.floor(Math.random() * 100 + 1) == guess);// проверка
console.log(Math.floor(Math.random() * 100 + 1) == guess);// проверка
console.log(Math.floor(Math.random() * 100 + 1) == guess);// проверка