Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- ERD
- 한글입력체크
- wap
- 이미지가로길이
- jdbc driver
- tempDB
- join
- 인젝션
- asp함수
- 정규식
- XML
- sql업데이트
- JavaScript
- array
- 자바기초
- 이미지세로길이
- sql순위
- javascript 한글입력체크
- sql랭킹
- xmldom
- injection
- SPLIT
- VarType
- instr
- FileSystemObject
- update
- inner join
- MSSQL보안
- WML
- VARIABLE
Archives
- Today
- Total
3초기억력
랜덤함수(Random, ASP) 본문
<%
'랜덤함수
'4지선다 답 맞추기. 답이 맞으면 포인트부여
Randomize()
answer = Int((Rnd * 4) + 1) '최대 4, 최소 1
Randomize()
answer_value = Int((Rnd * 4) + 1)
Dim Get_Point(4)
Get_Point(1) = 500
Get_Point(2) = 300
Get_Point(3) = 200
Get_Point(4) = 100
If answer = answer_value Then
Get_Point_Value = Get_Point(answer)
Else
Get_Point_Value = Get_Point(4)
End If
%>
<%=answer%><br>
<%=answer_value%><br>
<%=Get_Point_Value%><br>
'플밍_ASP' 카테고리의 다른 글
ASP - Msxml2.DOMDocument 활용법 (0) | 2008.11.17 |
---|---|
ASP - URLDecode 함수. 퍼옴 (0) | 2008.11.17 |
FileSystemObject 이용, 로그남기기(ASP) (0) | 2008.11.12 |
핸드폰번호 자리수 함수(ASP) (0) | 2008.11.12 |
XMLDOM 사용법 (1) | 2008.11.12 |
Comments