I have built a Table using HTML and would like to have a random number genereator, genereate numbers in each of the 5 boxes on the table with no duplicates between 1-50, I have a problem getting the numbers in each box on table, and creating no duplicate numbers - 3x5 square box
I thought PHP would better, is C++ or Java better??
Code:
<table width="199" height="290" border="1">
<tr>
<td height="45"><div align="center">
<h2><strong>T</strong></h2>
</div></td>
<td> </td>
<td><div align="center"><a title= " prize 1">1</a></div></td>
</tr>
<tr>
<td height="47"><div align="center">
<h2><strong>A</strong></h2>
</div></td>
<td> </td>
<td><div align="center"><atitle="prize 2">2</a></div>
<div align="center"></div></td>
</tr>
<tr>
<td height="53"><div align="center">
<h2><strong>B</strong></h2>
</div></td>
<td> </td>
<td><div align="center"><a title="prize 3">3</a></div></td>
</tr>
<tr>
<td height="47"><div align="center">
<h2><strong>L</strong></h2>
</div></td>
<td> </td>
<td><div align="center"><a title="prize 4">4</a></div></td>
</tr>
<tr>
<td height="53"><div align="center">
<h2><strong>E</strong></h2>
</div></td>
<td> </td>
<td><div align="center"><a title="prize 5">5</a></div></td>
</tr>
</table>
<h3><strong>If your number appears in the square you win prizes 1-5</strong><br />
</h3>
Comment