I am putting the variables in the code shown below, if I enter a [0] or [1] the correct image shows up, but I need it to coincide with the the random variable instead of 0 and 1.
Code:
<form NAME="form">
<table height="165">
<tr>
<td height="137"><table width="814">
<tr>
<td><script>document.write('<img alt="random image" src="' + playerC[a] + '"/>');</script>
<script>document.write('<img alt="random image" src="' + playerC[b] + '"/>');</script></td>
<td><script>document.write('<img alt="random image" src="' + playerC[c] + '"/>');</script>
<script>document.write('<img alt="random image" src="' + playerC[d] + '"/>');</script></td>
</tr>