print 'this' . ' ' x $spaces . 'that'; #### $spaces = $n * rand() + theNumberYouFirstThoughtOf(); print 'this' . ' ' x $spaces . 'that';