[update] Finalize assign random product function for category entity