哈合....楼上的不是随机的...
/images/2011/147787/2011051411021524.jpg" border="0" />
试一试下面这一个程序,应该是几秒吧
Private Sub Command3_Click()
Dim i%, j%, k%
Dim fNm%
Dim strBuf$, sStr$
Dim fName$
Const co = 999999999999999#
fNm = FreeFile
fName = "C:\Test.txt"
Open fName For Output As fNm
For i = 1 To 5000
strBuf = CStr(Int(Rnd * co))
strBuf = strBuf & String(16 - Len(strBuf), Right(CStr(i), 1)) & "#100#"
Write #fNm, strBuf
Next
For i = 5001 To 8000
strBuf = CStr(Int(Rnd * co))
strBuf = strBuf & String(16 - Len(strBuf), Right(CStr(i), 1))
For j = 1 To 16
sStr = Trim(sStr) & Chr(Asc(Mid(strBuf, j, 1)) + 17)
Next
sStr = Trim(sStr) & "#200"
Write #fNm, sStr
sStr = ""
Next
For i = 8001 To 10000
strBuf = CStr(Int(Rnd * co))
strBuf = strBuf & String(16 - Len(strBuf), Right(CStr(i), 1))
For j = 1 To 16
sStr = Trim(sStr) & Chr(Asc(Mid(strBuf, j, 1)) + 49)
Next
sStr = Trim(sStr) & "#300"
Write #fNm, sStr
sStr = ""
Next
Close fNm
End Sub
本来不想写的,冲你这句,也写了一个,下载后自己运行看看吧。
[此贴子已经被作者于2007-4-6 20:35:39编辑过]