Skip to content

Instantly share code, notes, and snippets.

@cwgreene
Created October 5, 2014 17:16
Show Gist options
  • Save cwgreene/2326eaa4dd4dcf4eff59 to your computer and use it in GitHub Desktop.
Save cwgreene/2326eaa4dd4dcf4eff59 to your computer and use it in GitHub Desktop.
randomPoly[n_, x_, {a_, b_}] :=
x^Range[0, n].RandomVariate[CauchyDistribution[2, 1], n + 1];
Show[Graphics[
Point[{Re[x], Im[x]}] /. NSolve[randomPoly[300, x, {27, 42}], x],
Axes -> True]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment