random( random( random( random( the name of the module (randomis the same as the name of the functionwhich gives rise to the funny-looking import line our racquetball simulation can make use of the random function to determine whether or not player wins serve let' look at specific example suppose player' service probability is this means that they should win of their serves you can imagine decision in the program something like thisif score score we need to insert probabilistic condition that will succeed of the time suppose we generate random value between and exactly of the interval is to the left of so of the time the random number will be the other of the time (the goes on the upper endbecause the random generator can produce but never in generalif prob represents the probability that the player wins servethe condition random(prob will succeed with just the right probability here is how the decision will lookif random(probscore score top-down design now you have the complete specification for our simulation and the necessary knowledge of random numbers to get the job done go ahead and take few minutes to write up the programi'll wait okseriouslythis is more complicated program than you've probably attempted so far you may not even know where to begin if you're going to make it through with minimal frustrationyou'll need systematic approach one proven technique for tackling complex problems is called top-down design the basic idea is to start with the general problem and try to express solution in terms of smaller problems then each of the smaller problems is attacked in turn using the same technique eventually the problems get so small that they are trivial to solve then you just put all the pieces back together andvoilayou've got program