In comparing the means of two samples that are considered random in order to test whether a significant difference exists, one would use the t test method of hypothesis testing.