VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6210
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   6210
   StartUpPosition =   3  '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
    Dim i As Integer
    Scale (-320, 240)-(320, -240)
    For i = 1 To 1000
        x = 320 * Rnd                           ' 产生x坐标
        y = 240 * Rnd                           ' 产生y坐标
        If Rnd < 0.5 Then x = -x                ' 其他3个象限
        If Rnd < 0.5 Then y = -y
        Form1.DrawWidth = Rnd * 4 + 1           ' 设置点的大小为2
        colorcode = Int(16 * Rnd)               ' 产生色彩代码
        PSet (x, y), QBColor(colorcode)
    Next i
End Sub

