/*
 * Program - Discover The Word
 * File Name - words.js
 * Author - ShuvoRim
 * Web site - http://www.shuvorim.tk
 * Email - shuvorim@hotmail.com
 * (c)ShuvoRim Pvt. Ltd. 2002 - 03
 * All rights reserved.
 * ------------------------------
 * Visit our web site for free open
 * source Applications, Applets,
 * Scripts and Games. Please tell
 * us whether you liked it or not!
 * Thank you for using our program.
 */



/* This function returns a random word each time the game reloads */

function randomWords()
{
	w = new Array(16); //an array of 700 words
	w[0] = "diereninfo";
	w[1] = "dierenkennis";
	w[2] = "geiten";
	w[3] = "cavia";
	w[4] = "konijn";
	w[5] = "eend";
	w[6] = "paard";
	w[7] = "leeuw";
	w[8] = "vis";
	w[9] = "hond";
	w[10] = "koe";
	w[11] = "voedsel";
	w[12] = "drinken";
	w[13] = "melk";
	w[14] = "lam";
	w[15] = "veulen";

	var rand = Math.floor(Math.random() * 16); /* generates a random integer */
	var word = w[rand].toLowerCase();	    /* here is the word */
	return word;				    /* return the word to the caller */
}

