{"id":1524,"date":"2019-08-10T10:54:48","date_gmt":"2019-08-10T10:54:48","guid":{"rendered":"https:\/\/www.copahost.com\/blog\/?p=1524"},"modified":"2020-05-31T13:52:00","modified_gmt":"2020-05-31T13:52:00","slug":"math-random-javascript","status":"publish","type":"post","link":"https:\/\/www.copahost.com\/blog\/math-random-javascript\/","title":{"rendered":"Math Random in Javascript: generating random numbers"},"content":{"rendered":"<p>Javascript provides a vast amount of math-related functions. In this article, we will explain how to use Math Random in Javascript. These in-built functions and objects are very useful while programming and developing. In-built functions and objects reduce the work for the developers. Some of the most commonly used in-built javascript functions and objects are parseFloat, parseInt, math, <a href=\"https:\/\/www.copahost.com\/blog\/concatenate-strings-javascript\/\">String<\/a>, Number, etc. In-built objects in javascript have different methods and properties which extend their working in different variations. In this article, we will learn about one such object known as math, and its method, random.<\/p>\n<h3>The math random method<\/h3>\n<p>Math object provides various properties and methods. Random is one of the methods of math objects in javascript. We can use the random function to get a random number between 0 (inclusive) and 1 (exclusive). The result we get is a <a href=\"https:\/\/modernweb.com\/what-every-javascript-developer-should-know-about-floating-points\/\" target=\"_blank\" rel=\"noopener noreferrer\">floating-point<\/a> number which can include 0, but not 1. The random function is a useful function while developing such apps that require a random number to a decision.<\/p>\n<p>The following examples show a random function used to generate a random floating-point number.<\/p>\n<pre class=\"lang:default decode:true\">var result1 = Math.random();\r\nvar result2 = Math.random();\r\nvar reuslt3 = Math.random();\r\n\r\n\/\/result1 = 0.38628229857168694\r\n\/\/result2 = 0.4474997248824282\r\n\/\/result3 = 0.14050962942617873<\/pre>\n<p>The output is:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1532\" style=\"border: 1px solid black;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math5.png\" alt=\"\" width=\"202\" height=\"143\" \/><\/p>\n<p>The result is different every time. We always get a different floating-point number than the previous one. The random function can be used to make random decisions also. Let&#8217;s discuss random decision making using a random function.<\/p>\n<pre class=\"lang:default decode:true\">var number = Math.random();\r\nvar result;\r\nif(number &lt;= 0.5)\r\n{\r\n  result = 1;\r\n}\r\nelse{\r\n   result = 0;\r\n}\r\n<\/pre>\n<p>Observe the above code. We used a variable named as the number and gave it any random number using Math.random function. In the if condition, we compared the number variable with 0.5. If it is less than or equal to 0.5, then the result is equal to 1 or else, it equals 0. This is random decision making.<\/p>\n<h3>Random function with a range<\/h3>\n<p>The random function of the math object by default returns a floating-point number between the range 0 (inclusive) and 1 (exclusive), but with certain different modifications using other functions, we can also extend the range. This can be done in two ways. Let&#8217;s discuss these ways of using the random function with range.<\/p>\n<h4>The range between 0 and a maximum value<\/h4>\n<p>This is one easy way of using math&#8217;s random function. We can get a random number between 0 and a specified maximum value by little modification.<\/p>\n<pre class=\"lang:default decode:true\">var result1 =  Math.random() * 10;\r\nvar result2 =  Math.random() * 10;\r\nvar reuslt3 =  Math.random() * 10;\r\n\r\n\/\/result1 = 1.9409498473136177\r\n\/\/result2 = 3.6785094083002634\r\n\/\/result3 = 0.04600099618988773<\/pre>\n<p>The output is:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-1533 size-full\" style=\"border: 1px solid black;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math4.png\" alt=\"Math Random in Javascript\" width=\"198\" height=\"131\" srcset=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math4.png 198w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math4-84x55.png 84w\" sizes=\"(max-width: 198px) 100vw, 198px\" \/><\/p>\n<p>In the above example, we simply multiplied the returned value of the random function with 10. This will create a random number within the range, 0 and 10. We can use any number in the place of 10 and multiplying it with the random function will give a random number between 0 and that specified number.<\/p>\n<h4>The range between a minimum and maximum value<\/h4>\n<p>We can also get a random number between two specified numbers. There is a special logic for this. The following example shows how to get a random number between a minimum and maximum value.<\/p>\n<pre class=\"lang:default decode:true\">var min = 50;\r\nvar max = 100;\r\n\r\nvar result1 = Math.random()*(max - min)+min;\r\nvar result2 = Math.random()*(max - min)+min;\r\nvar result3 = Math.random()*(max - min)+min;\r\n\r\n\/\/result1 = 64.41960433466932\r\n\/\/result2 = 91.59727835073954\r\n\/\/result3 = 76.15457234855353<\/pre>\n<p>The output is:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-1531\" style=\"border: 1px solid black;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math3.png\" alt=\"\" width=\"185\" height=\"129\" \/><\/p>\n<p>In the above example, we declared two variables, min, and max, with values 50 and 100 respectively. To get a random number between these two values, first, we have to take the difference of both values and add it to the minimum value. The sum is then multiplied with the return value of the random function. The random number generated is always between the range we specified.<\/p>\n<h3>Javascript Math Randon with Integer numbers<\/h3>\n<p>We can see that the returned random number is always a <a href=\"https:\/\/www.copahost.com\/blog\/javascript-parsefloat\/\">floating-point<\/a> number. What if we want an integer or whole number? We can use math object&#8217;s two other functions for this, ceil and floor. Let understand these two functions and their use with the help of an example.<\/p>\n<pre class=\"lang:default decode:true\">var min = 50; \r\nvar max = 100; \r\n\r\nvar result1 = Math.ceil(Math.random()*(max - min)+min); \r\nvar result2 = Math.floor(Math.random()*(max - min)+min);\r\n\r\n\/\/result1 = 95\r\n\/\/result2 = 62<\/pre>\n<p>The output is:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1530 size-full\" style=\"border: 1px solid black;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math2.png\" alt=\"object\" width=\"45\" height=\"87\" \/><\/p>\n<p>In the above example, we used the random function to generate random numbers. But the output is not a floating-point number. This is because we passed the random function to the math&#8217;s ceil and floor function. The value returned from both the function is an integer. The ceil function round-offs the floating-point number upwards to the nearest integer while the floor function round-offs it downwards to the nearest integer.<\/p>\n<h3>Math random function into an array<\/h3>\n<p>We can also generate an array of random numbers using the random function in <a href=\"https:\/\/www.copahost.com\/blog\/javascript-beautifiers\/\">javascript<\/a>. We need to generate random numbers in a for <a href=\"https:\/\/www.copahost.com\/blog\/php-loop-through-array\/\">loop to create the array<\/a>. The following <a href=\"https:\/\/www.copahost.com\/blog\/did-you-know-that-when-you-confirm-your-identity-through-a-captcha-code-you-are-helping-to-create-the-largest-digital-library-of-the-world\/\">code shows how to create<\/a> an array of random numbers using the math random Javascript function.<\/p>\n<pre class=\"lang:default decode:true\">var result;\r\nvar arr = [];\r\nfor(var i=0;i&lt;5;i++)\r\n{\r\n    result  = Math.random();\r\n    arr.push(result)\r\n}\r\n\r\n\/\/ arr = [0.7493301502756253,0.18946813002946805,0.9884781177829836,0.5870931575914757,0.9730439867672014]<\/pre>\n<p>The output is:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1529\" style=\"border: 1px solid black;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math1.png\" alt=\"\" width=\"854\" height=\"53\" srcset=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math1.png 918w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math1-300x19.png 300w, https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math1-768x48.png 768w\" sizes=\"(max-width: 854px) 100vw, 854px\" \/><\/p>\n<p>In the above code, we used the random function inside the <a href=\"https:\/\/www.w3schools.com\/js\/js_loop_for.asp\" target=\"_blank\" rel=\"noopener noreferrer\">for loop<\/a> to generate five random numbers. Then, we used the push method to add every value generated to the array. This how we create an array of random numbers.<\/p>\n<p>We created an array of floating-numbers, we can also create an array containing random numbers between any range. The following code shows how to do this.<\/p>\n<pre class=\"lang:default decode:true\">var arr = []; \r\nvar result;\r\nvar min = 50;\r\nvar max = 100;\r\n\r\nfor(var i=0;i&lt;5;i++) { \r\nresult = Math.ceil(Math.random() * (max-min) + min); \r\narr.push(result) \r\n} \r\n\r\n\/\/ arr = [60,96,99,98,82]<\/pre>\n<p>The output is:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1528 size-full\" style=\"border: 1px solid black;\" src=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math.png\" alt=\"Math Random in Javascript array\" width=\"145\" height=\"67\" \/><\/p>\n<p>In the above code, we used the maximum and minimum values to generate random numbers and then used the ceil function to convert the floating-point numbers to integers.<\/p>\n<h3>Conclusion<\/h3>\n<p><a href=\"https:\/\/javascript.com\" target=\"_blank\" rel=\"noopener noreferrer\">Javascript<\/a> is a vast language that comes with many in-built functions and objects. One of these objects is math that has many properties and methods. One of these methods, the math random\u00a0 Javascript function, we discussed in this article with examples. The random function is helpful during programming and development in many ways such as random decision making, random array generation, identification code generation, etc. The random function is easy to learn and use. Using it with other methods of math object, we can extend its working to another useful level.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Javascript provides a vast amount of math-related functions. In this article, we will explain how to use Math Random in Javascript. These in-built functions and objects are very useful while programming and developing. In-built functions and objects reduce the work for the developers. Some of the most commonly used in-built javascript functions and objects are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1524","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Math Random in Javascript: generating random numbers - Copahost<\/title>\n<meta name=\"description\" content=\"Want to generate random numbers in javascript? This article explains with examples of how to use math random in Javascript. Float, int, arrays and more.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Math Random in Javascript: generating random numbers - Copahost\" \/>\n<meta property=\"og:description\" content=\"Want to generate random numbers in javascript? This article explains with examples of how to use math random in Javascript. Float, int, arrays and more.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"Copahost\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-10T10:54:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-31T13:52:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math5.png\" \/>\n<meta name=\"author\" content=\"Gustavo Gallas\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gustavo Gallas\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/\"},\"author\":{\"name\":\"Gustavo Gallas\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246\"},\"headline\":\"Math Random in Javascript: generating random numbers\",\"datePublished\":\"2019-08-10T10:54:48+00:00\",\"dateModified\":\"2020-05-31T13:52:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/\"},\"wordCount\":909,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math5.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/\",\"url\":\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/\",\"name\":\"Math Random in Javascript: generating random numbers - Copahost\",\"isPartOf\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math5.png\",\"datePublished\":\"2019-08-10T10:54:48+00:00\",\"dateModified\":\"2020-05-31T13:52:00+00:00\",\"description\":\"Want to generate random numbers in javascript? This article explains with examples of how to use math random in Javascript. Float, int, arrays and more.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#primaryimage\",\"url\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math5.png\",\"contentUrl\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math5.png\",\"width\":202,\"height\":143},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.copahost.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Math Random in Javascript: generating random numbers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#website\",\"url\":\"https:\/\/www.copahost.com\/blog\/\",\"name\":\"Copahost\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.copahost.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#organization\",\"name\":\"Copahost\",\"url\":\"https:\/\/www.copahost.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png\",\"contentUrl\":\"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png\",\"width\":223,\"height\":40,\"caption\":\"Copahost\"},\"image\":{\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246\",\"name\":\"Gustavo Gallas\",\"description\":\"Graduated in Computing at PUC-Rio, Brazil. Specialized in IT, networking, systems administration and human and organizational development\u200b. Also have brewing skills.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/gustavo-gallas-107926196\/\"],\"url\":\"https:\/\/www.copahost.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Math Random in Javascript: generating random numbers - Copahost","description":"Want to generate random numbers in javascript? This article explains with examples of how to use math random in Javascript. Float, int, arrays and more.","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:\/\/www.copahost.com\/blog\/math-random-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Math Random in Javascript: generating random numbers - Copahost","og_description":"Want to generate random numbers in javascript? This article explains with examples of how to use math random in Javascript. Float, int, arrays and more.","og_url":"https:\/\/www.copahost.com\/blog\/math-random-javascript\/","og_site_name":"Copahost","article_published_time":"2019-08-10T10:54:48+00:00","article_modified_time":"2020-05-31T13:52:00+00:00","og_image":[{"url":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math5.png"}],"author":"Gustavo Gallas","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Gustavo Gallas","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#article","isPartOf":{"@id":"https:\/\/www.copahost.com\/blog\/math-random-javascript\/"},"author":{"name":"Gustavo Gallas","@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246"},"headline":"Math Random in Javascript: generating random numbers","datePublished":"2019-08-10T10:54:48+00:00","dateModified":"2020-05-31T13:52:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.copahost.com\/blog\/math-random-javascript\/"},"wordCount":909,"commentCount":0,"publisher":{"@id":"https:\/\/www.copahost.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math5.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.copahost.com\/blog\/math-random-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.copahost.com\/blog\/math-random-javascript\/","url":"https:\/\/www.copahost.com\/blog\/math-random-javascript\/","name":"Math Random in Javascript: generating random numbers - Copahost","isPartOf":{"@id":"https:\/\/www.copahost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#primaryimage"},"image":{"@id":"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math5.png","datePublished":"2019-08-10T10:54:48+00:00","dateModified":"2020-05-31T13:52:00+00:00","description":"Want to generate random numbers in javascript? This article explains with examples of how to use math random in Javascript. Float, int, arrays and more.","breadcrumb":{"@id":"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.copahost.com\/blog\/math-random-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#primaryimage","url":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math5.png","contentUrl":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2019\/08\/math5.png","width":202,"height":143},{"@type":"BreadcrumbList","@id":"https:\/\/www.copahost.com\/blog\/math-random-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.copahost.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Math Random in Javascript: generating random numbers"}]},{"@type":"WebSite","@id":"https:\/\/www.copahost.com\/blog\/#website","url":"https:\/\/www.copahost.com\/blog\/","name":"Copahost","description":"","publisher":{"@id":"https:\/\/www.copahost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.copahost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.copahost.com\/blog\/#organization","name":"Copahost","url":"https:\/\/www.copahost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png","contentUrl":"https:\/\/www.copahost.com\/blog\/wp-content\/uploads\/2016\/03\/copahostlogo.png","width":223,"height":40,"caption":"Copahost"},"image":{"@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.copahost.com\/blog\/#\/schema\/person\/386b3f1f79299d43f4ceb33d26428246","name":"Gustavo Gallas","description":"Graduated in Computing at PUC-Rio, Brazil. Specialized in IT, networking, systems administration and human and organizational development\u200b. Also have brewing skills.","sameAs":["https:\/\/www.linkedin.com\/in\/gustavo-gallas-107926196\/"],"url":"https:\/\/www.copahost.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts\/1524","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/comments?post=1524"}],"version-history":[{"count":12,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts\/1524\/revisions"}],"predecessor-version":[{"id":2412,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/posts\/1524\/revisions\/2412"}],"wp:attachment":[{"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/media?parent=1524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/categories?post=1524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.copahost.com\/blog\/wp-json\/wp\/v2\/tags?post=1524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}