

//Use the following variable to specify 
//the number of random words

var NoofWhat1 = 28

var what1 = new BuildArray(NoofWhat1)

//Use the following variables to 
//define your random words:

what1[0] = "computer"
what1[1] = "chair"
what1[2] = "table"
what1[3] = "key"
what1[4] = "pen"
what1[5] = "lamp"
what1[6] = "hammer"
what1[7] = "scarf"
what1[8] = "book"
what1[9] = "diary"
what1[10] = "mug"
what1[11] = "bottle"
what1[12] = "cheque"
what1[13] = "dog"
what1[14] = "chain"
what1[15] = "boat"
what1[16] = "holdall"
what1[17] = "wallet"
what1[18] = "axe"
what1[19] = "glove"
what1[20] = "lamp"
what1[21] = "ball"
what1[22] = "kite"
what1[23] = "shoe"
what1[24] = "fuse box"
what1[25] = "tissues"
what1[25] = "computer"
what1[26] = "parcel"
what1[27] = "van"
what1[28] = "scissors"

function BuildArray(size){
    this.length = size
    for (var i = 1; i <= size; i++){
        this[i] = null}
    return this
}

function PickRandomWhat1(frm) {
    // Generate a random number between 1 and NoofWhat1
     var rnd = Math.ceil(Math.random() * NoofWhat1)

		
    // Display the word inside the text box
    	frm.WhatBox1.value = what1[rnd]
	
}

