Wiris

Documentation / WirisQuizzes

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Wiris Integrations

                        • Home
                        • WirisQuizzes
                        • Advanced Validation Features
                        • Basic use of random variables
                        • Basic use of random variables

                        Declaring variables

                        Reading time: 1min

                        Variables are defined by writing a name for a variable next to the pound symbol # and the minimum and maximum value between which it's comprised.

                        There are two details to note:

                        • The variable's name can be any letter or word without spaces, excluding reserved words (e.g. sin, cos).
                        • The minimum and maximum values can be any integer value such that the first one is less or equal than the second one.

                        Was this article helpful?

                        Give feedback about this article

                        Related Articles

                        • Debugging (what to do if it isn't working)
                        • Divisibility

                        Empowering STEM education

                        MathType

                        • Office Tools
                        • LMS
                        • XML
                        • HTML

                        WirisQuizzes

                        Learning Lemur

                        Integrations

                        Solutions

                        • Education
                        • Publishing houses – platforms and interactive
                        • Publishing houses – Print and digital
                        • Technical writers

                        Pricing

                        Downloads

                        Blog

                        • Success stories

                        About us

                        • Careers
                        • Partnership

                        Contact Us

                        Contact Sales

                        European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                        • Cookie Policy
                        • Terms of Use
                        • Privacy Policy / GDPR
                        • Student Data Privacy
                        • Compliance
                        • Cookie Settings

                        © Wiris 2026

                        Expand