# RandomPolynomial Command Jump to: navigation, search

##### RandomPolynomial

This article is about GeoGebra command.

##### Command Categories (All commands)

This command works in CAS View only.

RandomPolynomial[ <Degree d> , <Minimum for Coefficients min>, <Maximum for Coefficients max> ]
Returns a randomly generated polynomial in x of degree d, whose (integer) coefficients are in the range from min to max, both included.
Example:
• `RandomPolynomial[0, 1, 2]` yields either 1 or 2 and
• `RandomPolynomial[2, 1, 2]` yields a random polynomial with a degree of two and only 1 and 2 as coefficients, for example 2x2 + x + 1.
RandomPolynomial[ <Variable Var>, <Degree d> , <Minimum for Coefficients min>, <Maximum for Coefficients max> ]
Returns a randomly generated polynomial in Var of degree d, whose (integer) coefficients are in the range from min to max, both included.
Note: In both cases if min or max are not integers, round(min) and round(max) are used instead.
• GeoGebra
• Help
• Partners
• Contact us
• Feedback & Questions
• This email address is being protected from spambots. You need JavaScript enabled to view it.
• +43 677 6137 2693
© 2021 International GeoGebra Institute