I am trying to reduce the memory allocation of an inner loop in my code. Below the part that is not working as expected.
using Random using StatsBase using Bench