rand

dolfin.cpp.function.rand()

Return a random number, uniformly distributed between [0.0, 1.0)