Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a1ab6a

Browse files
committed
Random
1 parent 770d1fa commit 6a1ab6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ from statistics import mean, median, variance # Also: stdev, quantiles, grou
518518

519519
### Random
520520
```python
521-
from random import random, randint, choice # Also shuffle, gauss, triangular, seed.
521+
from random import random, randint, choice # Also: shuffle, gauss, triangular, seed.
522522
<float> = random() # A float inside [0, 1).
523523
<int> = randint(from_inc, to_inc) # An int inside [from_inc, to_inc].
524524
<el> = choice(<sequence>) # Keeps the sequence intact.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@
470470
<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 <span class="hljs-comment"># Also: stdev, quantiles, groupby.</span>
471471
</code></pre></div>
472472

473-
<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 <span class="hljs-comment"># Also shuffle, gauss, triangular, seed.</span>
473+
<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 <span class="hljs-comment"># Also: shuffle, gauss, triangular, seed.</span>
474474
&lt;float&gt; = random() <span class="hljs-comment"># A float inside [0, 1).</span>
475475
&lt;int&gt; = randint(from_inc, to_inc) <span class="hljs-comment"># An int inside [from_inc, to_inc].</span>
476476
&lt;el&gt; = choice(&lt;sequence&gt;) <span class="hljs-comment"># Keeps the sequence intact.</span>

0 commit comments

Comments
 (0)