made random use a seed