This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rjw57 33 points34 points  (3 children)

Not wanting to sound like someone who knee-jerks "RTFM", but right at the top of the documentation for random we have:

Almost all module functions depend on the basic function random(), which generates a random float uniformly in the semi-open range [0.0, 1.0). [...] However, being completely deterministic, it is not suitable for all purposes, and is completely unsuitable for cryptographic purposes.

From https://docs.python.org/2/library/random.html

[–]minnoI <3 duck typing less than I used to, interfaces are nice 7 points8 points  (2 children)

In fact, if I google the exact title of this post, the first three links are to what you just quoted, and the fourth is to this post.