A java value generator