Random number

Radom number generated (between one to five in words) every time the page loads

by M Shameer

HTML

<div class="boxes One">1</div>

JavaScript

$(document).ready(function(){

	var quotes = new Array("One", "Two", "Three", "Four", "Five"),
    randno = quotes[Math.floor( Math.random() * quotes.length )];
	randnoTwo = quotes[Math.floor( Math.random() * quotes.length )];
	
	 if (randnoTwo !== randno){
	
	newRandmClass = randno;
    newRandmClassTwo = randnoTwo;
	
	$('.One').text( newRandmClass );
		 
	 }
	
									
});