로또없나요? ㅡ.ㅡ > 자유게시판

자유게시판

로또없나요? ㅡ.ㅡ 정보

궁금 로또없나요? ㅡ.ㅡ

본문

자작에 찾아보니 우리복권은 있어도 로또는 짤렸네요. ㅡ.ㅡ
그누포인트와 연동해서 재미삼아 해보려는데,
없을까요? ㅡ.ㅡ
추천
0
  • 복사

댓글 4개

요런것도 있네요....^^ 이 소스가 아마 zzzz님으로 부터 나온거 같습니다...ㅎㅎ

================================================================
<script>
ans=new Array(5)
function Lotto()
{

      for (i=0;i<=5;i++){//1부터 45 가지 난수발생
      ans[i]=Math.floor(45*(Math.random())+1);
      ans=ans.sort()
}

arr=ans.length-1
  j=1
  for (i=0;i<=arr;i++){
      if (ans[i]==ans[j]){//0번방부터 5번방까지 검사해서 같은수가 있으면 다시 난수발생
            ans[i]=Math.floor(45*(Math.random())+1);
        }

  else{
        b=1
        for (a=0;a<=arr;a++){
            if (ans[a]==ans[b]){//위의 배열에서 또 0번 방부터 5번방까지 같은수가 있으면 난수 발생
            ans[a]=Math.floor(45*(Math.random())+1);
            }
        b++
        j++
        }     
       
        sort=ans.sort()
      return sort;
      }
  }
}



</script>
<body bgcolor="#ffffff" marginwidth="0" marginheight="0" onload="return false;" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
<table width=100% border=0 cellspacing="0" cellpadding="0">
<tr><td align="center">
<form name="form1">로또 생성기<br><input type="text" name=total size=20><INPUT TYPE="button" NAME="BUTTON" VALUE="다시" onclick="location.reload();" class=okna_button>
</td>
</form>
</tr></table>
<script>
document.form1.total.value=Lotto()
</script>
이거 전에 로또645에 있던걸 꿍치와서 재미로 써다가 버린건데(?) .......ㅋㅋ;;;
괜찮으시다면...........뿌리까요 ??
http://www.boramchan.co.kr/lotto.php

이글이 유아원님께서 자게에 최초로 남기신 글이 맞나 모르겠습니다.
닉을 자주 바꾸시니 찾기도 힘듭니다..ㅠ.ㅠ
늘 베푸시는 원로분들이 자게에 남기신 최초의 글을 찾아서
감사의 꽃 한송이를 남기는 저 나름대로의 이벤트입니다.
언제나 감사합니다.
건강하시고 행복하세요...억수로 많이요..^^
© SIRSOFT
현재 페이지 제일 처음으로