functions, loop & random examples to 2/25/14