mercredi 21 octobre 2015

How to Populate an Excel Column With Random Numbers Using Python

Disclaimer: I am an absolute Python noob.

I just discovered nice code, which generates a random number between a range:

"from random import randint

print(randint(0,12))"

I am trying to generate my own data, which I'll map in ArcMap. So, what I want to do is populate a whole Excel column with random numbers using this code.

Perhaps there's another way to do this in Excel, but I'm mainly interested in accomplishing this with Python.




Aucun commentaire:

Enregistrer un commentaire