<commit_before>/**
 * @class Roguelike.Utils
 * @classdesc In this class are the functions stored that are being
 * used in other functions
 */
var seed = Math.floor(Math.random() * (500 - 100 + 1) + 100);

console.log(seed);

Roguelike.Utils = {

	//mersenneTwister: new MersenneTwister(seed),
	mersenneTwister: new MersenneTwister(),

	/**
	 * Function to generate a random number between two values
	 * @public
	 *
	 * @param {Number} from - The minimum number
	 * @param {Number} to - The maximum number
	 *
	 * @return {Number} A random number between the two supplied values
	 */
	randomNumber: function(from, to) {

		return Math.floor(this.mersenneTwister.random() * (to - from + 1) + from);

	},

	/**
	 * Function to extend the default options with the users options
	 * @public
	 *
	 * @param {Object} a - The original object to extend
	 * @param {Object} b - The new settings that override the original object
	 *<commit_msg>We generate a new map with the generated seed so we can reproduce maps if we want.<commit_after>/**
 * @class Roguelike.Utils
 * @classdesc In this class are the functions stored that are being
 * used in other functions
 */
var seed = Math.floor(Math.random() * (500 - 100 + 1) + 100);

console.log(seed);

Roguelike.Utils = {

	mersenneTwister: new MersenneTwister(seed),
	//mersenneTwister: new MersenneTwister(404),

	/**
	 * Function to generate a random number between two values
	 * @public
	 *
	 * @param {Number} from - The minimum number
	 * @param {Number} to - The maximum number
	 *
	 * @return {Number} A random number between the two supplied values
	 */
	randomNumber: function(from, to) {

		return Math.floor(this.mersenneTwister.random() * (to - from + 1) + from);

	},

	/**
	 * Function to extend the default options with the users options
	 * @public
	 *
	 * @param {Object} a - The original object to extend
	 * @param {Object} b - The new settings that override the original object
	 *
{'fraction_non_alphanumeric': 0.11151079136690648, 'fraction_numerical': 0.012846865364850977, 'mean_word_length': 3.486175115207373, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1953103', 'n_tokens_mistral': 625, 'n_tokens_neox': 560, 'n_words': 224}