Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
d6dd0e65
Kaydet (Commit)
d6dd0e65
authored
Şub 19, 2016
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Closes #20169: fix inner links random doc.
üst
94035f3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
random.rst
Doc/library/random.rst
+6
-5
No files found.
Doc/library/random.rst
Dosyayı görüntüle @
d6dd0e65
...
@@ -19,7 +19,7 @@ On the real line, there are functions to compute uniform, normal (Gaussian),
...
@@ -19,7 +19,7 @@ On the real line, there are functions to compute uniform, normal (Gaussian),
lognormal, negative exponential, gamma, and beta distributions. For generating
lognormal, negative exponential, gamma, and beta distributions. For generating
distributions of angles, the von Mises distribution is available.
distributions of angles, the von Mises distribution is available.
Almost all module functions depend on the basic function :func:`random`, which
Almost all module functions depend on the basic function :func:`
.
random`, which
generates a random float uniformly in the semi-open range [0.0, 1.0). Python
generates a random float uniformly in the semi-open range [0.0, 1.0). Python
uses the Mersenne Twister as the core generator. It produces 53-bit precision
uses the Mersenne Twister as the core generator. It produces 53-bit precision
floats and has a period of 2\*\*19937-1. The underlying implementation in C is
floats and has a period of 2\*\*19937-1. The underlying implementation in C is
...
@@ -36,9 +36,10 @@ especially useful for multi-threaded programs, creating a different instance of
...
@@ -36,9 +36,10 @@ especially useful for multi-threaded programs, creating a different instance of
it likely that the generated sequences seen by each thread don't overlap.
it likely that the generated sequences seen by each thread don't overlap.
Class :class:`Random` can also be subclassed if you want to use a different
Class :class:`Random` can also be subclassed if you want to use a different
basic generator of your own devising: in that case, override the :meth:`random`,
basic generator of your own devising: in that case, override the :meth:`~Random.random`,
:meth:`seed`, :meth:`getstate`, :meth:`setstate` and :meth:`jumpahead` methods.
:meth:`~Random.seed`, :meth:`~Random.getstate`, :meth:`~Random.setstate` and
Optionally, a new generator can supply a :meth:`getrandbits` method --- this
:meth:`~Random.jumpahead` methods. Optionally, a new generator can supply a
:meth:`~Random.getrandbits` method --- this
allows :meth:`randrange` to produce selections over an arbitrarily large range.
allows :meth:`randrange` to produce selections over an arbitrarily large range.
.. versionadded:: 2.4
.. versionadded:: 2.4
...
@@ -158,7 +159,7 @@ Functions for sequences:
...
@@ -158,7 +159,7 @@ Functions for sequences:
Shuffle the sequence *x* in place. The optional argument *random* is a
Shuffle the sequence *x* in place. The optional argument *random* is a
0-argument function returning a random float in [0.0, 1.0); by default, this is
0-argument function returning a random float in [0.0, 1.0); by default, this is
the function :func:`random`.
the function :func:`
.
random`.
Note that for even rather small ``len(x)``, the total number of permutations of
Note that for even rather small ``len(x)``, the total number of permutations of
*x* is larger than the period of most random number generators; this implies
*x* is larger than the period of most random number generators; this implies
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment