[pstricks] random points

Denis Vergès denis.verges at wanadoo.fr
Fri Jun 23 17:42:03 CEST 2017


Dear PSTricks list

I had to plot 100 random points  in a square 0 <= x < =1 and 0 <= y <= 1.

In fact  if the point is under the curve \psplot[plotpoints=3000,linewidth=1.25pt,linecolor=cyan]{0}{1}{1 x dup mul 1 add div}
the point is black  ; if the point is above the point is white.

How can I do ?

Thanks for advance ; in the book of H. Voss I don’t find the solution.

Denis Vergès
 


More information about the PSTricks mailing list