Upload missing code to randart.c

Signed-off-by: nppangband <nppangbanddev@verizon.net>