Can we implement a php lotto picker algorithm?

I have seen a lot of literature on the fact that it is possibly to implement a very efficient lottery picking algorithm that can maximize on chances of winning a lottery. How easy is it to implement a PHP lotto picker algorithm to achieve a similar outcome?
