Is there a way to use a randomize function with relation to a give data type, i.e.
if I request the type is double then I will get double values, and if the requested type is float I will get float values?
Is there such a randomize function?
java 1.7:
Either you call
ThreadLocalRandom.current().next<DataType>()by yourself, or you write a wrapper around this call:java 1.6: