Укажите плиз на ошибку.
<form name="form">
<input type="button" value="
number" onClick="num";">
<input type="text" name="field" value="">
<script>
var a =new Array ('1','2', '3', '4', '5', '6', '7', '8', '9','0');
var b =new Array ('D', 'X', 'H', 'S', 'V', 'P', 'U', 'A', 'N', 'T', 'R', 'M', 'Y', 'E', 'B', 'R', 'Z', 'K', 'W', 'F', 'G', 'C');
var wra = a[Math.round(Math.random()*(a.length-1))];
var wrb = b[Math.round(Math.random()*(b.length-1))];
num = ( wra+wrb);
document.form.field.value = num ( wra+wrb);
</script>
</form>