1<button class="button" onclick="RandomID();" style="font-family: sans-serif;">RUN</button>
2<input class="input" type="text" id="id" name="id" size="3" readonly />
1function RandomID() {
2 var value;
3 var rnd = Math.floor(Math.random() * 11);
4
5 if (rnd === 7)
6 value = "Wassup";
7 else if (rnd <= 5)
8 value = "Hello";
9 else
10 value = rnd;
11
12 document.getElementById('id').value = value;
13}