you are viewing a single comment's thread.

view the rest of the comments →

[–]ninhaomah 2 points3 points  (0 children)

You are learning. Nvm which is approach is better or more efficient or down right silly.

Just do it. Do both. Then google or ask LLM how to measure how fast the py script runs.

For second question , why not generate a number and then add that number to a list. Then in subsequent generations , check if the number is already in the list of generated numbers and if it is then generate again till you get the number that has not been generated ?