Add own rand number generator, validated with linux and MS VS