I don't think you're going to be able to do it with just HTML. I'm not quite sure what a pbp is. (Python Browser Poseur?)
You could do it with JavaScript or PHP though.
Try this with JavaScript:
Code:
<html>
<script language="Javascript">
function getnumber () {
var number = Math.random()*100;
number = round(number);
document.random.number.value = time;
}
</script>
<body>
<form name="random">
<input type="text" name="number" style="border: 0px" value="">
</form>
</body>
</html>
That should just generate a random number (it should work, but I don't really know JavaScript, so there's a chance it won't). To try for the other thing, I need to know what pbp is.