import random


def random_name_generator(range, ogc_type):
    """creates a random name for the new record, composed by a number of <range> figures,
    followed by '_<ogc_type>' """
    numerical_name_side = str(random.randint(0, 10**range)).zfill(range)
    return numerical_name_side + "_" + ogc_type