Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • C++ Data Types
  • C++ Input/Output
  • C++ Arrays
  • C++ Pointers
  • C++ OOPs
  • C++ STL
  • C++ Interview Questions
  • C++ Programs
  • C++ Cheatsheet
  • C++ MCQ
  • C++ Projects
  • C++ Exception Handling
  • C++ Memory Management
Open In App
Next Article:
std::uniform_real_distribution max() method in C++ with Examples
Next article icon

std::uniform_real_distribution a() method in C++ with Examples

Last Updated : 17 Jun, 2019
Comments
Improve
Suggest changes
Like Article
Like
Report
The a() method of uniform_real_distribution class in C++ is used to get the lower bound of this uniform_real_distribution. Syntax:
  result_type a() const;  
Parameters: This method do not accepts any parameters. Return Value: This method return the 'a' parameter in the distribution, which is the lower bound or the minimum possibly generated value in this uniform_real_distribution. Example: CPP
// C++ code to demonstrate // the working of a() function  #include <iostream>  // for uniform_real_distribution function #include <random>  using namespace std;  int main() {     double a = 10, b = 20.5;      // Initializing of uniform_real_distribution class     uniform_real_distribution<double> distribution(a, b);      // Using a()     cout << "Lower Bound: "          << distribution.a() << endl;      return 0; } 
Output:
  Lower Bound: 10  
Reference: http://www.cplusplus.com/reference/random/uniform_real_distribution/a/

Next Article
std::uniform_real_distribution max() method in C++ with Examples

S

srinam
Improve
Article Tags :
  • Misc
  • C++
  • CPP-Functions
  • cpp-random
Practice Tags :
  • CPP
  • Misc

Similar Reads

  • std::uniform_real_distribution b() method in C++ with Examples
    The b() method of uniform_real_distribution class in C++ is used to get the upper bound of this uniform_real_distribution. Syntax: result_type b() const; Parameters: This method do not accepts any parameters. Return Value: This method return the 'b' parameter in the distribution, which is the upper
    1 min read
  • std::uniform_real_distribution min() method in C++ with Examples
    The min() method of uniform_real_distribution class in C++ is used to get the minimum possible value that can be generated by this uniform_real_distribution. Syntax: result_type min() const; Parameters: This method do not accepts any parameters. Return Value: This method return the minimum possibly
    1 min read
  • std::uniform_real_distribution max() method in C++ with Examples
    The max() method of uniform_real_distribution class in C++ is used to get the maximum possible value that can be generated by this uniform_real_distribution. Syntax: result_type max() const; Parameters: This method do not accepts any parameters. Return Value: This method return the maximum possibly
    1 min read
  • std::uniform_real_distribution reset() method in C++ with Examples
    The reset() method of uniform_real_distribution class in C++ is used to reset this uniform_real_distribution. Syntax: void reset(); Parameters: This method do not accepts any parameters. Return Value: This method do not return anything. Example: // C++ code to demonstrate // the working of reset() f
    1 min read
  • std::uniform_int_distribution a() method in C++ with examples
    The a() method of uniform_int_distribution class in C++ is used to get the lower bound of this uniform_int_distribution. If there is no lower bound then this method returns 0. Syntax: result_type a() const; Parameters: This method do not accepts any parameters. Return Value: This method return the '
    1 min read
  • std::uniform_int_distribution reset() method in C++ with examples
    The reset() method of uniform_int_distribution class in C++ is used to reset this uniform_int_distribution. Syntax: void reset(); Parameters: This method do not accepts any parameters. Return Value: This method do not return anything. Example: // C++ code to demonstrate // the working of reset() fun
    1 min read
  • std::uniform_int_distribution b() method in C++ with examples
    The b() method of uniform_int_distribution class in C++ is used to get the upper bound of this uniform_int_distribution. If there is no upper bound then this method returns std::numeric_limits::max(). Syntax: result_type b() const; Parameters: This method do not accepts any parameters. Return Value:
    1 min read
  • std::uniform_int_distribution min() method in C++ with examples
    The min() method of uniform_int_distribution class in C++ is used to get the minimum possible value that can be generated by this uniform_int_distribution. Syntax: result_type min() const; Parameters: This method do not accepts any parameters. Return Value: This method return the minimum possibly ge
    1 min read
  • std::uniform_int_distribution max() method in C++ with examples
    The max() method of uniform_int_distribution class in C++ is used to get the maximum possible value that can be generated by this uniform_int_distribution. Syntax: result_type max() const; Parameters: This method do not accepts any parameters. Return Value: This method return the maximum possibly ge
    1 min read
  • negative_binomial_distribution in C++ with Examples
    This function is defined in header randomRandom. Negative binomial distribution is Random number distribution that produces integers according to a negative binomial discrete distribution (also known as Pascal distribution), which is described by the following probability mass function. [Tex]P(i|k,
    3 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences