]> vgcfreebox.myrthtech.pt Git - ue-pp-sortingalgorith.git/blobdiff - generate_input.py
fix tv_nsec for wall clock, clean c program, bigger file for testing strong scalability
[ue-pp-sortingalgorith.git] / generate_input.py
index 3ac3af638fdbebaf188e745bb70524c5b3c124fd..f2a4838e6d37371594407d64f39e8818eda53300 100644 (file)
@@ -5,7 +5,6 @@ import os
 def generate_random_file(count, filename, min_val=-100000, max_val=100000):
     """
     Generates a text file containing 'count' number of random signed integers.
-
     Args:
         count (int): The number of integers to generate.
         filename (str): The name of the output file.
@@ -33,14 +32,10 @@ def generate_random_file(count, filename, min_val=-100000, max_val=100000):
         print(f"\n[ERROR] An error occurred during file writing: {e}")
 
 if __name__ == "__main__":
-    # --- Usage Check and Argument Parsing ---
+    # Usage Check and Argument Parsing
     
     if len(sys.argv) < 3:
-        print("\n------------------------------------------------------------------")
         print("Usage: python generate_input.py <COUNT> <OUTPUT_FILENAME> [MIN_VALUE] [MAX_VALUE]")
-        print("Example 1 (Default): python generate_input.py 1000 input.txt")
-        print("Example 2 (Custom Range): python generate_input.py 1000 big_data.txt -5000 -15000")
-        print("------------------------------------------------------------------")
         sys.exit(1)
 
     try: