HF RL Explorer

Binary Random Array with Specific Proportion of Ones

Binary Random Array with Specific Proportion of Ones: a task in Terminal-Lego-15k (Harbor dataset). You need to create a Python script that efficiently generates random binary arrays (containing only 0s and 1s) with a specific proportion of ones using NumPy.

Part of PrimeIntellect/Terminal-Lego-15k.