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
d5ecb513
Kaydet (Commit)
d5ecb513
authored
Tem 20, 2005
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix markup nits
üst
e35b657e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
librandom.tex
Doc/lib/librandom.tex
+4
-4
No files found.
Doc/lib/librandom.tex
Dosyayı görüntüle @
d5ecb513
...
...
@@ -159,8 +159,8 @@ Functions for sequences:
population contains repeats, then each occurrence is a possible
selection in the sample.
To choose a sample from a range of integers, use
\function
{
xrange
}
as an argument. This is especially fast and space efficient for
To choose a sample from a range of integers, use
an
\function
{
xrange()
}
object
as an argument. This is especially fast and space efficient for
sampling from a large population:
\code
{
sample(xrange(10000000), 60)
}
.
\end{funcdesc}
...
...
@@ -236,7 +236,7 @@ Alternative Generators
\begin{classdesc}
{
WichmannHill
}{
\optional
{
seed
}}
Class that implements the Wichmann-Hill algorithm as the core generator.
Has all of the same methods as
\class
{
Random
}
plus the
\method
{
whseed
}
Has all of the same methods as
\class
{
Random
}
plus the
\method
{
whseed
()
}
method described below. Because this class is implemented in pure
Python, it is not threadsafe and may require locks between calls. The
period of the generator is 6,953,607,871,644 which is small enough to
...
...
@@ -246,7 +246,7 @@ require care that two independent random sequences do not overlap.
\begin{funcdesc}
{
whseed
}{
\optional
{
x
}}
This is obsolete, supplied for bit-level compatibility with versions
of Python prior to 2.1.
See
\function
{
seed
}
for details.
\function
{
whseed
}
does not guarantee
See
\function
{
seed
()
}
for details.
\function
{
whseed()
}
does not guarantee
that distinct integer arguments yield distinct internal states, and can
yield no more than about 2**24 distinct internal states in all.
\end{funcdesc}
...
...
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