The easiest way of explaining this is probably to provide an example of what I want to do:
Consider the following section of a LaTeX document.
Calls to the function
// a blank line
get_next_random_number(int) // This should be monospace (texttt) and centered on page
// another blank line
should be independent of previous calls, resulting in a Fourier Space distribution with no eigenfrequency.
So far I have this (LaTeX code):
Calls to \\\\\texttt{get_next_random_number(int)}\\\\should be independent of previous calls, resulting in a Fourier Space distribution with no eigenfrequency.
But I have no idea how to set this so it is centred on the screen rather than left-justified.

centerenvironment? – Bernard Aug 30 '15 at 14:30\[ \text{...} \]. (but haven't actually tried it; lack of time.) – barbara beeton Aug 30 '15 at 14:46\centerline{…}command. – Bernard Aug 30 '15 at 14:46