(value)
return retVal
Randomize a parameter value based on occurances of alphanumeric characters

    >>> random.seed(0)
    >>> randomizeParameterValue('foobar')
    'rnvnav'
    >>> randomizeParameterValue('17')
    '83'
Randomize a parameter value based on occurances of alphanumeric characters
Randomize a parameter value based on occurances of alphanumeric characters
def randomizeParameterValue(value):
    """
    Randomize a parameter value based on occurances of alphanumeric characters

    >>> random.seed(0)
    >>> randomizeParameterValue('foobar')
    'rnvnav'
    >>> randomizeParameterValue('17')
    '83'
    """

    retVal = value

    value = re.sub(r"%[0-9a-fA-F]{2}", "", value)

    for match in re.finditer('[A-Z]+', value):
        retVal = retVal.replace(match.group(), randomStr(len(match.group())).upper())

    for match in re.finditer('[a-z]+', value):
        retVal = retVal.replace(match.group(), randomStr(len(match.group())).lower())

    for match in re.finditer('[0-9]+', value):
        retVal = retVal.replace(match.group(), str(randomInt(len(match.group()))))

    return retVal
def randomizeParameterValue ( value ) : retVal = value value = re . sub ( r"%[0-9a-fA-F]{2}" , "" , value ) for match in re . finditer ( '[A-Z]+' , value ) : retVal = retVal . replace ( match . group ( ) , randomStr ( len ( match . group ( ) ) ) . upper ( ) ) for match in re . finditer ( '[a-z]+' , value ) : retVal = retVal . replace ( match . group ( ) , randomStr ( len ( match . group ( ) ) ) . lower ( ) ) for match in re . finditer ( '[0-9]+' , value ) : retVal = retVal . replace ( match . group ( ) , str ( randomInt ( len ( match . group ( ) ) ) ) ) return retVal