Added more codes to random number function.

Very easy.