Task: Generate Non-Repetitive Random Numbers Using NumPy
Task: Generate Non-Repetitive Random Numbers Using NumPy: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that generates an array of 10 non-repetitive (unique) random integers between 1 and 20 (inclusive) using NumPy. The numbers in the resulting array must all be distinct (no…
The task
Write a Python script that generates an array of 10 non-repetitive (unique) random integers between 1 and 20 (inclusive) using NumPy. The numbers in the resulting array must all be distinct (no duplicates).
Part of PrimeIntellect/Terminal-Lego-15k.