RANDOM() visual
Posted: Tue Jun 23, 2020 6:07 am
hi,
i want to generate "random Point"
now look at Picture ... Point are NOT "random" ...
i have made a Logfile with data and that "seems random" but if you "visualize" it you see this Result
so how to generate "random" Number under harbour / HMG
i want to generate "random Point"
Code: Select all
mX := RANDOM( aSize[1]-2 )
mY := RANDOM( aSize[2]-2 )
::Circle(mX,mY,3,nColor,,.T.)
Code: Select all
METHOD DemoDlg:Circle(X0,Y0,R0,nColor,nLineType,lFill)
draw ellipse in window MainForm ;
at Y0,X0 to Y0+3,X0+3 ; // X0,Y0 to X0+3,Y0+3
pencolor {random(255),random(255),random(255)} penwidth 2 fillcolor {random(255),random(255),random(255)}
RETURN NIL