Geometric random variables are used to model the number of trials needed to achieve the first success in a sequence of independent Bernoulli trials, where each trial has a constant probability of success. This concept connects closely to the geometric distribution, which describes the probability of achieving the first success on a specific trial number and can help in calculating expected values and variances associated with these random variables.