Functions to simulate and estimate Mexican election results based on a random sample, the functions were used, among other methodologies, to anticipate the final results of the 2021 Mexican elections.