var rant_range;
var current_rant;
var rant;

function load() {
	rant_range = document.getElementById("rant_range");
	current_rant = document.getElementById("current");
	rant = document.getElementById("rant");

	update_rant();
}

function invalidate_rant() {
	rant_valid = false;
}

function update_rant() {
	if (rant_valid) {
		make_it_rant();
	}

	current_rant.innerHTML = Math.floor(rant_range.value * 100);
}

var rant_valid = false;
var rant_val;
var rant_seed;

function make_it_rant() {
	if (!rant_valid) {
		rant_seed = (new Date()).getTime();
		Math.seedrandom(rant_seed);
		rant_valid = true;
		rant_val = rant.value;
	} else {
		Math.seedrandom(rant_seed);
	}

	var to_make_ranty = rant_val.split(" ");
	rant.value = "";
	for (var word_i in to_make_ranty) {
		var word = to_make_ranty[word_i];
		if (Math.random() <= rant_range.value)
			word += " FUCKING";
		rant.value += word;
		if (word_i != to_make_ranty.length - 1)
			rant.value += " ";
	}
}
@@ -352,20 +352,24 @@
 it_rant(
+true
 );%0D%0A
-
 %09%7D%0D%0A%0D%0A%09c
@@ -510,24 +510,29 @@
 ake_it_rant(
+force
 ) %7B%0D%0A%09if (!r
@@ -536,24 +536,46 @@
 (!rant_valid
+ %7C%7C force == undefined
 ) %7B%0D%0A%09%09rant_
@@ -742,29 +742,27 @@
 var 
-to_make_ra
+rant_amou
 nt
-y
  = rant_
 val.
@@ -761,23 +761,22 @@
 ant_
-val.split(%22 %22);
+range.value;%0D%0A
 %0D%0A%09r
@@ -791,236 +791,114 @@
 e = 
-%22%22;%0D%0A%09for (var word_i in to_make_ranty) %7B%0D%0A%09%09var word = to_make_ranty%5Bword_i%5D;%0D%0A%09%09if (Math.random() %3C= rant_range.value)%0D%0A%09%09%09word += %22 FUCKING%22;%0D%0A%09%09rant.value += word;%0D%0A%09%09if (word_i != to_make_ranty.length - 1)%0D%0A%09%09%09rant.value +=
+rant_val.replace(/ /g, function() %7B%0D%0A%09%09if (Math.random() %3C= rant_amount)%0D%0A%09%09%09return %22 FUCKING %22;%0D%0A%09%09return
  %22 %22
@@ -902,11 +902,13 @@
 %22 %22;%0D%0A%09%7D
+);
 %0D%0A%7D

Improve FUCKING performance