import random
import string


def random_id(length=5):
    """Generate a random ID of 5 characters to append to qsub job name."""
    return ''.join(random.sample(string.ascii_letters + string.digits, length))