In this lecture we will discuss how testbenches more powerful and with better scalability than the ones we considered so far can be written. In particular, we will look into file I/O, how random values can be generated and the standard environment package.