FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
typeshed/stdlib/_random.pyi at main · python/typeshed · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
typeshed
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
5.1k
Code
Issues
212
Pull requests
155
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
typeshed
/
stdlib
/
_random.pyi
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (12 loc) · 459 Bytes
Breadcrumbs
typeshed
/
stdlib
/
_random.pyi
Copy path
File metadata and controls
14 lines (12 loc) · 459 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from
typing
import
TypeAlias
from
typing_extensions
import
disjoint_base
# Actually Tuple[(int,) * 625]
_State
:
TypeAlias
=
tuple
[
int
, ...]
@
disjoint_base
class
Random
:
def
__init__
(
self
,
seed
:
object
=
...,
/
)
->
None
: ...
def
seed
(
self
,
n
:
object
=
None
,
/
)
->
None
: ...
def
getstate
(
self
)
->
_State
: ...
def
setstate
(
self
,
state
:
_State
,
/
)
->
None
: ...
def
random
(
self
)
->
float
: ...
def
getrandbits
(
self
,
k
:
int
,
/
)
->
int
: ...
Back
|
FazBrowse Home
|
New Git URL