Add random item generation server side code