adding missing header file string.h
added C wrapper function for get_random