Need to get the probabilities for how each batsman is out usually, also how a bowler usually takes wickets.
Then combine and create a distribution for each ball. Use this distribution and a random number generator to simulate how each ball is played for 50 overs.