8000 GitHub - hllau/choices: for making random decisions · GitHub
[go: up one dir, main page]

Skip to content
hllauPublic
forked from timClicks/choices

About

for making random decisions

Resources

Stars

1 star

Watchers

1 watching

Forks

 
 

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

choices : for making random decisions

choices allows you to simulate decision making from a
probability distribution. more formally, it provides
a declarative mechanism for introducing stochastic
behaviour to your code.

    >>> from choices import PDist
    >>> mood = PDist({'happy': 0.3, 'sad': 0.1, 'neutral': 0.6})
    >>> mood()
    'happy'
    >>> mood()
    'neutral'

About

for making random decisions

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

0