When a minor is permitted to participate in a deferred entry of judgment procedure, the judge shall impose, as a condition of probation, the requirement that the minor be subject to warrantless searches of his or her person, residence, or property under his or her control, upon the request of a probation officer or peace officer. The court shall also consider whether imposing random drug or alcohol testing, or both, including urinalysis, would be an appropriate condition of probation. The judge shall also, when appropriate, require the minor to periodically establish compliance with curfew and school attendance requirements. The court may, in consultation with the probation department, impose any other term of probation authorized by this code that the judge believes would assist in the education, treatment, and rehabilitation of the minor and the prevention of criminal activity. The minor may also be required to pay restitution to the victim or victims pursuant to the provisions of this code.
Ca. Welf. and Inst. Code § 794