U

uniform(min,max)

 

Module: random

Syntax: uniform(min,max)

Description: Returns a random number x (float) such that min <= x <= max.

Example:

>>>from random import *

>>>uniform(0,1)

0.476118

>>>uniform(10,20)

16.2787            

Results will vary given a random output.

» Modul
2:random…
Random
3:uniform(min,max)

 

y N

 

[Fns…] > Modul
2:random…
Random
3:uniform(min,max)

 

import commands can be found in
y N