I am trying to implement non-uniform probability distribution in genetic algorithm.
In the implementation of genetic program, I have an experiment which has 3 outcom
Based on your description it seems to me that you are talking about fitness proportionate selection (also known as roulette wheel selection).
http://en.wikipedia.org/wiki/Roulette-wheel_selection
I think nailxx' answer is a pretty compact description what you need to do.
see also
Roulette Selection in Genetic Algorithms
Roulette wheel selection algorithm
If I'm wrong here are some libraries that you may find useful:
http://www.ee.ucl.ac.uk/~mflanaga/java/Stat.html
http://commons.apache.org/math/apidocs/org/apache/commons/math/random/package-summary.html