ID:1917706
 
(See the best response by Doohl.)
Code:
mob 
verb
change_loc()
loc=locate(pick(1,1,1 && 1,16,1))


Problem description:
how do i make it to choose between either one or another location randomly?

Best response
You need to use the pick() proc.

mob/verb/change_loc()
loc = pick(locate(1,1,1), locate(1,16,1))


The && operator is the boolean AND, and doesn't work the way you think it does. It takes the expressions on other side of it and returns TRUE if said expressions also return TRUE, otherwise it returns FALSE.
thanks