This document presents an algorithm to minimize rental costs for a two-machine flow shop scheduling problem where job processing times are associated with probabilities and transportation time between machines is considered. The algorithm uses Johnson's rule to obtain an initial optimal sequence and then evaluates all possible sequences by moving each job to the first position. It calculates completion times for each machine and rental costs to find the minimum cost sequence. The algorithm is demonstrated with a computer program and numerical example.