¼Ò½º
<script language="JavaScript">
<!--
function random1(){
form1.txt1.value = Math.random();
}
function random2(){
form1.txt2.value = Math.round(Math.random()*50);
}
function random3(){
form1.txt3.value = Math.round(Math.random()*50) + 50;
}
//-->
</script>
<form name="form1">
<input type="text" name="txt1" size="27"><input type="button" value="¿¹Á¦1" onclick="random1()"> 0ºÎÅÍ 1»çÀÌÀÇ ¼ö¸¦ ¹«ÀÛÀ§·Î »ý¼º (±âº» ·£´ý°ª)<br><br>
<input type="text" name="txt2" size="27"><input type="button" value="¿¹Á¦2" onclick="random2()"> 0ºÎÅÍ 50»çÀÌÀÇ ¼ö¸¦ ¹«ÀÛÀ§·Î »ý¼º (ÃÖ´ë°ª ÁöÁ¤)<br><br>
<input type="text" name="txt3" size="27"><input type="button" value="¿¹Á¦3" onclick="random3()"> 50ºÎÅÍ 100»çÀÌÀÇ ¼ö¸¦ ¹«ÀÛÀ§·Î »ý¼º(ÃÖ¼Ò,ÃÖ´ë°ª ÁöÁ¤)
</form>
<br>¹öÆ°À» ¿©·¯¹ø ´©¸£¸é¼ Å×½ºÆ®ÇØ º¸¼¼¿ä.
|