Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Turing

Name: Anonymous 2012-01-08 21:14

Need to sort 10 randomly generated numbers with arrays and bubble sorting. I've figured out how to get the sorting, but how do I randomize the numbers?

Name: Anonymous 2012-01-08 22:46

from random import randrange
array = []
for i in range(0,9):
    array.append(randrange(5000))
array.sort()
print array

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List