How to get a random number ?(編號:7588)

I want to write a MARK SIX (六合彩) program , How can I write a program that can create a random number ?