125126127128129130131
@ExposedMethod final PyObject Random_random() { long a=this.javaRandom.nextInt()>>>5; long b=this.javaRandom.nextInt()>>>6; double ret=(a*67108864.0+b)*(1.0/9007199254740992.0); return new PyFloat(ret); }
140141142143144145146
public NumberToPyFloat(Class c) { super(c); } public PyObject adapt(Object o) { return new PyFloat(((Number) o).doubleValue()); }