/**
 * Given a dictionary and a list of keys, subtracts a random number from the value associated with each key.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @param keysList A list of keys from the dictionary.
 * @return The updated dictionary after subtracting a random number from the value associated with each key.
 */
fun subtractValuesFromDictionary(dictionary: MutableMap<String, Int>, keysList: List<String>): MutableMap<String, Int> {

    val random = java.util.Random()

    for (key in keysList) {
        if (dictionary.containsKey(key)) {
            dictionary[key] = dictionary.getValue(key) - (1..10).random()
        }
    }

    return dictionary
}
/**
 * Given a dictionary and a list of keys, subtracts a random number from the value associated with each key.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @param keysList A list of keys from the dictionary.
 * @return The updated dictionary after subtracting a random number from the value associated with each key.
 */
fun subtractValuesFromDictionary(dictionary: MutableMap<String, Int>, keysList: List<String>): MutableMap<String, Int> {
/**
 * Given a dictionary and a list of keys, subtracts a random number from the value associated with each key.
 *
 * @param dictionary A dictionary containing key-value pairs.
 * @param keysList A list of keys from the dictionary.
 * @return The updated dictionary after subtracting a random number from the value associated with each key.
 */
fun subtractValuesFromDictionary(dictionary: MutableMap<String, Int>, keysList: List<String>): MutableMap<String, Int> {

    val random = java.util.Random()

    for (key in keysList) {
        if (dictionary.containsKey(key)) {
            dictionary[key] = dictionary.getValue(key) - (1..10).random()
        }
    }

    return dictionary
}