added c_strn and removed include random