Well, seeing that I'm terribly bad at math I don't know how to solve this, I'll try to explain, excuse me if I sound dumb.

Just suppose that I've got a photo/image with 320x240 resolution and 24 bit color depth (16,777,216 colors) and suppose that I made a computer program that sets pixels on 320x240px screen with random color values of truecolor (24 bits), so what is the probability for this program to draw my photo, or let's say any image I have with this particular resolution?

I know it's almost impossible but I want to know the exact proportion. The result will also give the answer to the question how many pictures we would have if we wanted to have all the pictures that can ever exist (on certain values of course), in which you can pick up even the craziest ones beyond imagination.


1 Answer 1


The chance of 1 pixel would be 1 in 16777216.

The chance of 2 pixels would be (1/16777216) * (1/16777216).

So the chance of all of them would be (1/16777216) ^ (320*240).

Not very likely at all :) I'd stick with the lottery...

  • $\begingroup$ hahah me too. no calculator I've found gives that HUGE number. How can I get it? $\endgroup$
    – ofer dofer
    Jul 22, 2014 at 11:55
  • $\begingroup$ Pen, paper and a centillion years? $\endgroup$
    – Beakie
    Jul 22, 2014 at 11:58
  • 2
    $\begingroup$ WolframAlpha gives an answer: link $\endgroup$
    – Noxet
    Jul 22, 2014 at 11:59
  • $\begingroup$ 1.4164433669279745384520856111782135776837353561254474... × 10^-55486 $\endgroup$
    – Beakie
    Jul 22, 2014 at 11:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .