Skip to content

Instantly share code, notes, and snippets.

@joshuazt
Created February 19, 2021 01:26
Show Gist options
  • Save joshuazt/9e434e302fb9c06fb9a5d2bcc221320d to your computer and use it in GitHub Desktop.
Save joshuazt/9e434e302fb9c06fb9a5d2bcc221320d to your computer and use it in GitHub Desktop.
//define scales
float seed = ch('seed') + @primseed;
@Rand_Pscale = fit01(rand(i@ptnum+seed+225), -ch('Rand_Scale'), ch('Rand_Scale'));
@Uniform_Pscale = chf('Scale');
//apply pscale
@pscale = @Uniform_Pscale + @Rand_Pscale;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment