Draw pixel 2

From Rosetta Code
Task
Draw pixel 2
You are encouraged to solve this task according to the task description, using any language you may know.
Task

Create a window and draw a pixel in it

  1.  1-the window is 640 x 480
  2.  2- the color of the pixel must be green (255,255,0)
  3.  3-that the position of the pixel is random