Answer:
No it's not a random sample
He did not pick at random instead he selected gasoline stations closest to his house.
Explanation:
His aim is to know the average cost of a gallon of gasoline in his town, and not around his house, he is expected to visit the four gas stations in his town at random to get the right data set for his analysis
What is a random sample?
In statistics, a simple random sample is a subset of individuals chosen from a larger set. Each individual is chosen randomly and entirely by chance, such that each individual has the same probability.