Browse Source

Random

pull/86/head
Jure Šorn 3 years ago
parent
commit
54d2c3f369
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -511,7 +511,7 @@ from statistics import mean, median, variance, stdev, pvariance, pstdev
### Random
```python
from random import random, randint, choice, shuffle
from random import random, randint, choice, shuffle, gauss, seed
<float> = random()
<int> = randint(from_inclusive, to_inclusive)
<el> = choice(<list>)

2
index.html

@ -613,7 +613,7 @@ to_exclusive = &lt;range&gt;.stop
<div><h3 id="statistics">Statistics</h3><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> statistics <span class="hljs-keyword">import</span> mean, median, variance, stdev, pvariance, pstdev
</code></pre></div>
<div><h3 id="random">Random</h3><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> random <span class="hljs-keyword">import</span> random, randint, choice, shuffle
<div><h3 id="random">Random</h3><pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> random <span class="hljs-keyword">import</span> random, randint, choice, shuffle, gauss, seed
&lt;float&gt; = random()
&lt;int&gt; = randint(from_inclusive, to_inclusive)
&lt;el&gt; = choice(&lt;list&gt;)

Loading…
Cancel
Save