So I have the following code which iterates over a list and uses the data to populate a dict.

```
self.data = [["name1.co.uk", "123", "A", "1.2.3.4"],["name2.com", "122", "NS", "ns1.google.com"]]

for each_list in self.data:
            self.terrarecord[each_list[0].replace('.', '')] = {
                "zone_id": self.zone_id,
                "name": each_list[0] + self.url, # not sure if I need to do this
                "type": each_list[2],
                "ttl": each_list[1],
                "records": [each_list[3].replace('\n', '')]
            }

```

**I realise this probably isn't very Pythonic, so any suggestions on how to do this more eloquently would be appreciated**

Anyhoo, what I want to do is add a random value to each key generated as the code loops through the data.

So where it says `self.terrarecord[each_list[0].replace('.', '')] = {` I want to add a randomly generated number on the end, so the finished result might look something like this:

```
"key123" { # <-- This is the key that needs a random number
    "id": "id",
    "name": "key.co.uk",
    "type": "SOA",
    "records": ["1234 etc"]

}

```

As you can see in the loop it is using the same data in the `data` list to populate more than one key, and the first one needs to be unique hence why I want to add the integer as I loop through.

I hope this makes sense. It's quite difficult to explain.

Thanks