R: added srand(), init C lib random seed.