add ajax random from function