Example usage for org.apache.commons.lang.math RandomUtils nextFloat

List of usage examples for org.apache.commons.lang.math RandomUtils nextFloat

Introduction

In this page you can find the example usage for org.apache.commons.lang.math RandomUtils nextFloat.

Prototype

public static float nextFloat(Random random) 

Source Link

Document

Returns the next pseudorandom, uniformly distributed float value between 0.0 and 1.0 from the given Random sequence.

Usage

From source file:org.isisaddons.module.fakedata.dom.Floats.java

@Programmatic
public float any() {
    return RandomUtils.nextFloat(fake.random);
}