generates an arbitarily integers between -1024 and +1024 for sorting arrays in c plus plus, an utility function