

{"id":26127,"date":"2018-08-25T05:10:01","date_gmt":"2018-08-25T05:10:01","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=26127"},"modified":"2026-04-22T15:36:29","modified_gmt":"2026-04-22T10:06:29","slug":"python-random-number","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/python-random-number\/","title":{"rendered":"Python Random Number &#8211; Generate Random Numbers With NumPy"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Today, in this <strong>Python tutorial<\/strong>, we will talk about Python random numbers. <\/span><\/p>\n<p><span style=\"font-weight: 400\">We will see ways to generate and import random numbers in Python. Also, we will discuss generating a Python Random Number with NumPy.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">So, let\u2019s begin.<\/span><\/p>\n<h3>Need of Python Random Number<\/h3>\n<p><span style=\"font-weight: 400\">A Random Number in Python is any number in a range we decide. <\/span><\/p>\n<p><span style=\"font-weight: 400\">From initializing weights in an ANN to splitting data into random train and test sets, the need for generating random numbers is apparent. <\/span><\/p>\n<p><strong>Use cases of Random Number:<\/strong><\/p>\n<ul>\n<li><strong>Game development:<\/strong> It is used to make games more fun and interesting, like shuffling cards or making the enemies run unexpectedly in a video game.<\/li>\n<li><strong>Application testing:<\/strong> It is used to make sample data to check how the application will react to potential problems.<\/li>\n<li><strong>Security:<\/strong> It can be used to create strong passwords and codes that cannot be hacked by a hacker easily.<\/li>\n<li><strong>Predictions:<\/strong> Scientists randomly use these numbers to make analyses and predictions, such as weather patterns, the financial market, customer arrival time, etc.<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">So today, we will discuss pseudorandom <strong>generators in Python<\/strong>. We will also try doing that with the standard Python library and with NumPy.<\/span><\/p>\n<h3>How to Generate a Python Random Number?<\/h3>\n<p><span style=\"font-weight: 400\">What we really generate are pseudorandom numbers. These are numbers that appear nearly random but are actually something we generate with a deterministic process.<\/span><\/p>\n<p>Python uses the Mersenne Twister pseudorandom number generator.<\/p>\n<p>The process of generating random numbers involves deterministically generating sequences and seeding with an initial number.<\/p>\n<p>The default for the <em>seed<\/em> is the current system time in seconds\/ milliseconds. A different seed will produce a different sequence of random numbers.<\/p>\n<h4>1. Import the Random module<\/h4>\n<p>Before we can begin, let&#8217;s first import the module\u00a0<i>random<\/i>\u00a0from the Python Standard Library.\u00a0You can directly import it-<\/p>\n<p><strong>import random<\/strong><\/p>\n<p>To import a piece of functionality from it- say, random, you can:<\/p>\n<p><strong>from random import random<\/strong><\/p>\n<p>Or for seed, you can:<\/p>\n<p><strong>from random import seed<\/strong><\/p>\n<h4>2. Random Floating Point Numbers<\/h4>\n<p><span style=\"font-weight: 400\">Let\u2019s take an example of generating a Python Random Number.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; from random import seed\r\n&gt;&gt;&gt; from random import random\r\n&gt;&gt;&gt; seed(7)\r\n&gt;&gt;&gt; random(),random(),random(),random()<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">(0.32383276483316237, 0.15084917392450192, 0.6509344730398537, 0.07243628666754276)<\/div>\n<p><span style=\"font-weight: 400\">Works for us. Now, what if we reseed to the same value and call the random() functions\/methods again?<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; seed(7)\r\n&gt;&gt;&gt; random(),random(),random(),random()<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">(0.32383276483316237, 0.15084917392450192, 0.6509344730398537, 0.07243628666754276)<\/div>\n<p><span style=\"font-weight: 400\">You\u2019ll find it gives us the same thing as it did earlier.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Working with minimum values and multiplying the floats-<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Some days, you may not want to generate a random number in Python values between 0 and 1.<\/span><\/p>\n<p><span style=\"font-weight: 400\"> In the following piece of code, 2 is the minimum value, and we multiply the random number generated by 10.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; seed(7)\r\n&gt;&gt;&gt; 2+10*random()<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">5.238327648331624<\/div>\n<h4>3. Python Random Integers<\/h4>\n<p><span style=\"font-weight: 400\">We use the randint() function to get integers randomly. <\/span><\/p>\n<p><span style=\"font-weight: 400\">It takes two arguments- the start and the top, and then draws a random value from a uniform distribution. Each value has an equal chance of being picked.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; from random import randint\r\n&gt;&gt;&gt; seed(7)\r\n&gt;&gt;&gt; randint(0,9),randint(0,9),randint(0,9)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">(5, 2, 6)<\/div>\n<p><span style=\"font-weight: 400\">We asked for three random values; this gave us 5, 2, and 6.<\/span><\/p>\n<h4>4. Getting Integers Randomly from a Range<\/h4>\n<p><span style=\"font-weight: 400\">randrange() randomly selects an element from range(start,stop,step).<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; from random import randrange\r\n&gt;&gt;&gt; randrange(-2,4)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">-1<\/div>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; randrange(-2,4)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">0<\/div>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; randrange(-2,4)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">1<\/div>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; randrange(-2,4)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">-1<\/div>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; randrange(-2,4)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\"><span style=\"font-family: Verdana, Geneva, sans-serif\">2<\/span><\/div>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; randrange(-2,4)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">-2<\/div>\n<h4>5. Random Gaussian Values in Python<\/h4>\n<p><span style=\"font-weight: 400\">The gauss() function takes in two arguments- the mean and the standard deviation. This gives us a real-valued distribution.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; from random import gauss\r\n&gt;&gt;&gt; seed(7)\r\n&gt;&gt;&gt; gauss(0,1),gauss(0,1),gauss(0,1)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">(-0.2558802884476004, 0.511431512516514, -0.2260961647831047)<\/div>\n<h4>6. Choosing Randomly From Lists<\/h4>\n<p><span style=\"font-weight: 400\">It is possible to randomly pick values from our own custom lists. We have the choice() function\/method for this.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; list=[2,4,3,9,6,2,1,0,7,4,3,5,3,6,8]\r\n&gt;&gt;&gt; from random import choice\r\n&gt;&gt;&gt; seed(7)\r\n&gt;&gt;&gt; choice(list),choice(list),choice(list),choice(list),choice(list),choice(list)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">(2, 3, 1, 3, 2, 4)<\/div>\n<p><span style=\"font-weight: 400\">For a choice of multiple values, you can use choices() instead.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; from random import choices\r\n&gt;&gt;&gt; choices(list,k=4)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">[7, 2, 9, 7]<\/div>\n<h4>7. Randomly Choosing a Subset from a List<\/h4>\n<p><span style=\"font-weight: 400\">Once sample() puts an item from a list into the sublist, it does not add it back to the original list for picking from. <\/span><\/p>\n<p><span style=\"font-weight: 400\">This is a selection without replacement. Note that this does not modify the original list. This function\/ method also takes the size of the subset to create.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; list<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">[2, 4, 3, 9, 6, 2, 1, 0, 7, 4, 3, 5, 3, 6, 8]<\/div>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; from random import sample\r\n&gt;&gt;&gt; sample(list,6)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">[6, 7, 4, 2, 4, 2]<\/div>\n<h4>8. Shuffling a List Randomly<\/h4>\n<p><span style=\"font-weight: 400\">We can shuffle a list like a deck of cards with the shuffle() function\/ method. <\/span><\/p>\n<p><span style=\"font-weight: 400\">This shuffles the list in-place. In other words, it does not need to create a new list to put shuffled items into one by one.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; list<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">[2, 4, 3, 9, 6, 2, 1, 0, 7, 4, 3, 5, 3, 6, 8]<\/div>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; from random import shuffle\r\n&gt;&gt;&gt; shuffle(list)\r\n&gt;&gt;&gt; list<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">[6, 3, 2, 3, 6, 5, 0, 3, 4, 1, 4, 2, 9, 7, 8]<\/div>\n<p><span style=\"font-weight: 400\">Note that this modifies the list.<\/span><\/p>\n<h3>How to Generate a Python Random Number with NumPy?<\/h3>\n<p><span style=\"font-weight: 400\">With the seed() and rand() functions\/ methods from<strong> NumPy<\/strong>, we can generate random numbers. The functionality is the same as above.<\/span><\/p>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; from numpy.random import seed\r\n&gt;&gt;&gt; from numpy.random import rand\r\n&gt;&gt;&gt; seed(7)\r\n&gt;&gt;&gt; rand(3)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">array([0.07630829, 0.77991879, 0.43840923])<\/div>\n<pre class=\"EnlighterJSRAW\">&gt;&gt;&gt; seed(7)\r\n&gt;&gt;&gt; rand(3)<\/pre>\n<p><strong>Output<\/strong><\/p>\n<div class=\"code-output\">array([0.07630829, 0.77991879, 0.43840923])<\/div>\n<h3>Python Interview Questions on Random Numbers<\/h3>\n<p>1. How to choose a random number from a list in Python?<\/p>\n<p>2. How to generate a random number using NumPy?<\/p>\n<p>3. Explain the way to get Random Gaussian Numbers.<\/p>\n<p>4. How does Python generate Random Numbers?<\/p>\n<p>5. What is the need to generate a random number in Python?<\/p>\n<h3>Conclusion<\/h3>\n<p>Python\u2019s random module supplies pseudo-random numbers built on the Mersenne Twister engine, giving 53-bit precision and a long period. Functions like random(), randint(a, b), and choice(seq) let you pick floats, ints, or items with ease.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, in this Python tutorial, we will talk about Python random numbers. We will see ways to generate and import random numbers in Python. Also, we will discuss generating a Python Random Number with&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":84791,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[6615,10783,10784,10785,10786,10787,10791,11307,11308],"class_list":["post-26127","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-import-random-python","tag-python-random","tag-python-random-float","tag-python-random-integer","tag-python-random-list","tag-python-random-number","tag-python-random-numbers","tag-random-numbers-in-python","tag-random-sample-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Random Number - Generate Random Numbers With NumPy - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn What is Python Random Number, How to Generate Random Numbers in Python, Import Random Module, Python Random Integer\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/python-random-number\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Random Number - Generate Random Numbers With NumPy - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn What is Python Random Number, How to Generate Random Numbers in Python, Import Random Module, Python Random Integer\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/python-random-number\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-25T05:10:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-22T10:06:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Generating-Python-Random-Numbers.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Random Number - Generate Random Numbers With NumPy - DataFlair","description":"Learn What is Python Random Number, How to Generate Random Numbers in Python, Import Random Module, Python Random Integer","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/python-random-number\/","og_locale":"en_US","og_type":"article","og_title":"Python Random Number - Generate Random Numbers With NumPy - DataFlair","og_description":"Learn What is Python Random Number, How to Generate Random Numbers in Python, Import Random Module, Python Random Integer","og_url":"https:\/\/data-flair.training\/blogs\/python-random-number\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-08-25T05:10:01+00:00","article_modified_time":"2026-04-22T10:06:29+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Generating-Python-Random-Numbers.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/python-random-number\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/python-random-number\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Python Random Number &#8211; Generate Random Numbers With NumPy","datePublished":"2018-08-25T05:10:01+00:00","dateModified":"2026-04-22T10:06:29+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-random-number\/"},"wordCount":800,"commentCount":15,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-random-number\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Generating-Python-Random-Numbers.jpg","keywords":["Import Random Python","python random","Python Random Float","python random integer","Python Random List","python random number","Python Random Numbers","Random Numbers in Python","random sample python"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/python-random-number\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/python-random-number\/","url":"https:\/\/data-flair.training\/blogs\/python-random-number\/","name":"Python Random Number - Generate Random Numbers With NumPy - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-random-number\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-random-number\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Generating-Python-Random-Numbers.jpg","datePublished":"2018-08-25T05:10:01+00:00","dateModified":"2026-04-22T10:06:29+00:00","description":"Learn What is Python Random Number, How to Generate Random Numbers in Python, Import Random Module, Python Random Integer","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/python-random-number\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/python-random-number\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/python-random-number\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Generating-Python-Random-Numbers.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/08\/Generating-Python-Random-Numbers.jpg","width":1200,"height":628,"caption":"Generating Python Random Number"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/python-random-number\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Python Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/python\/"},{"@type":"ListItem","position":3,"name":"Python Random Number &#8211; Generate Random Numbers With NumPy"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/26127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=26127"}],"version-history":[{"count":14,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/26127\/revisions"}],"predecessor-version":[{"id":147774,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/26127\/revisions\/147774"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/84791"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=26127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=26127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=26127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}