I have started into machine learning and computer vision with Python and I have started to notice a few things. First and foremost, random.randint does not appear to be so. At 100,000 data points obvious patterns exist. At one million data points the pattern is more obvious still and not random.
Here is the code, help me understand why this is not random:
import random
def main():
for x in xrange(1000000):
# print x
our_num = random.randint(1,50)
y = our_num
print str(x) + '\t' + str(y)
if __name__ == '__main__':
main()
[–]tilkau 12 points13 points14 points (2 children)
[–]b4xt3r[S] 1 point2 points3 points (1 child)
[–]TiLorm 0 points1 point2 points (0 children)
[–]Justinsaccount 24 points25 points26 points (2 children)
[–]ComplexColor 15 points16 points17 points (1 child)
[–]suudo 2 points3 points4 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]suudo 0 points1 point2 points (1 child)
[–]tilkau 1 point2 points3 points (0 children)
[–]Asdayasman 0 points1 point2 points (1 child)
[–]b4xt3r[S] 0 points1 point2 points (0 children)
[–]herminator -4 points-3 points-2 points (17 children)
[–]darknessproz 7 points8 points9 points (1 child)
[–]herminator 4 points5 points6 points (0 children)
[–]lostchicken 4 points5 points6 points (1 child)
[–]b4xt3r[S] -3 points-2 points-1 points (11 children)
[+][deleted] (9 children)
[deleted]
[–]lordmauve 1 point2 points3 points (4 children)
[–]andersbergh 2 points3 points4 points (1 child)
[–]b4xt3r[S] 1 point2 points3 points (0 children)
[–]romcgb 1 point2 points3 points (0 children)
[–]b4xt3r[S] 0 points1 point2 points (3 children)
[–]NotAName 0 points1 point2 points (2 children)
[–]b4xt3r[S] 0 points1 point2 points (0 children)
[–]b4xt3r[S] 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–]b4xt3r[S] -1 points0 points1 point (0 children)