Thursday, November 10, 2011

Is there a way to get random numbers from the C++ srand() method in Java?

Java has JNI and JNA. JNI is Java Native Interface. You write wrappers for the C++ functions you want to expose to Java. JNA is the same thing, except the coding for the C++ wrappers is linked as a 'lazy' reference.

No comments:

Post a Comment