Randomly partition array into k segments | Roblox Coding Question