Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlxRandom: add floatNormal #1251

Merged
merged 6 commits into from
Jul 30, 2014
Merged

FlxRandom: add floatNormal #1251

merged 6 commits into from
Jul 30, 2014

Conversation

larsiusprime
Copy link
Member

This adds the floatNormal() function to FlxRandom, which lets you get a random float within a statistical normal distribution centered around a given mean and standard deviation size. (Uses the Box-Muller transform algorithm).

@larsiusprime
Copy link
Member Author

Also here's a new demo:
HaxeFlixel/flixel-demos#143

…f user changes Mean and StDev on odd-numbered calls to floatNormal
gamedevsam added a commit that referenced this pull request Jul 30, 2014
@gamedevsam gamedevsam merged commit a38eef4 into HaxeFlixel:dev Jul 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants