|
111.
|
|
|
renpy.random
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/other.rst:15
|
|
112.
|
|
|
This object is a random number generator that implements `the Python random number generation interface <http://docs.python.org/release/2.3.4/lib/module-random.html>`_. Randomness can be generated by calling the various methods this object exposes. See the Python documentation for the full list, but the most useful are:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/other.rst:17
|
|
113.
|
|
|
``renpy.random.random()``
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/other.rst:24
|
|
114.
|
|
|
Return the next random floating point number in the range (0.0, 1.0).
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/other.rst:26
|
|
115.
|
|
|
``renpy.random.randint(a, b)``
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/other.rst:29
|
|
116.
|
|
|
Return a random integer such that a <= N <= b.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/other.rst:31
|
|
117.
|
|
|
``renpy.random.choice(seq)``
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/other.rst:34
|
|
118.
|
|
|
Return a random element from the non-empty sequence seq.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/other.rst:36
|
|
119.
|
|
|
Unlike the standard Python random number generator, this object cooperates with rollback, generating the same numbers regardless of how many times we rollback. It should be used instead of the standard Python random module. ::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/other.rst:39
|