E D R S I H C RSS
ID
Password
Join
A well-known friend is a treasure.

FrontPage 10000개좌표생성

import random

result = []
max_count = 10000

while ( len(result) < max_count ):
    x = random.randint(1, 10001)
    y = random.randint(1, 10001)
    result.append( (x, y) )
    result = list(set(result))

result_file = open("result.txt" ,"w")
result_file.write(str(max_count) + "\n")
for point in result:
    result_file.write(str(point[0])+" " +str(point[1]) + "\n")

result_file.close()
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2012-11-09 01:50:29
Processing time 0.1377 sec