All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jtstand.demo.TestRandom Maven / Gradle / Ivy

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jtstand.demo;

import java.util.Random;
import javax.script.Bindings;

/**
 *
 * @author albert_kurucz
 */
public class TestRandom {

    public static final Random r = new Random();

    public static Object eval(String notused, Bindings bindings) {
        Double retval = 1.0 + r.nextGaussian();
        bindings.put("value", retval);
        return retval;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy