gnucom.cc
Code snippets and more…
Skip to content
About
Favorite Books
Featured
Building your own programming language
Part 0. Preparing a build environment
Part 1. Basic Types
Open Source & Free Software
Tag Archives:
testing
Generate list of random integers in Python.
By
sholsapp
|
Published:
July 28, 2010
I use this for testing and that is about it. import random def randomArr(length, max): arr = [] for i in range(0, length): arr.append(random.randint(0, max)) return arr
Posted in
Programming
|
Also tagged
python
,
randomization
|
Leave a comment
Pages
About
Favorite Books
Featured
Building your own programming language
Part 0. Preparing a build environment
Part 1. Basic Types
Open Source & Free Software
Categories
Nagios
NLP
Programming
Ubuntu Linux
Webhosting
Wordpress
Archives
August 2010
(4)
July 2010
(15)
June 2010
(7)
December 2009
(1)
September 2009
(1)
August 2009
(9)
July 2009
(17)
June 2009
(5)
January 2009
(1)
Generate list of random integers in Python.