Made random number final
made win and loss pass by extension.