math withSeed funcpat Modify a pattern by applying a function to the randomSeed control if present parametertype funcfunction Function from seed (or undefined) to seed (or undefined)patPattern Pattern to update