{"id":24870,"date":"2020-08-28T14:38:19","date_gmt":"2020-08-28T18:38:19","guid":{"rendered":"https:\/\/blog.carlrobitaille.org\/?p=24870"},"modified":"2020-08-28T14:38:22","modified_gmt":"2020-08-28T18:38:22","slug":"random","status":"publish","type":"post","link":"https:\/\/blog.carlrobitaille.org\/?p=24870","title":{"rendered":"$RANDOM"},"content":{"rendered":"\n<figure class=\"wp-block-embed-twitter wp-block-embed is-type-rich is-provider-twitter\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\"><p lang=\"en\" dir=\"ltr\">Want  a random integer between 0 and 32767 is generated under running on Linux or Unix? Try<br><br>echo &quot;$RANDOM&quot; # quick and dirty method for scripts<br><br>echo  $(( <a href=\"https:\/\/twitter.com\/search?q=%24RANDOM&amp;src=ctag&amp;ref_src=twsrc%5Etfw\">$RANDOM<\/a> % 100 + 1 )) # Use modulo to get int between 1 &#8211; 100 <a href=\"https:\/\/t.co\/palIZ8RU0U\">pic.twitter.com\/palIZ8RU0U<\/a><\/p>&mdash; nixCraft \ud83d\udc27 (@nixcraft) <a href=\"https:\/\/twitter.com\/nixcraft\/status\/1299384518365700099?ref_src=twsrc%5Etfw\">August 28, 2020<\/a><\/blockquote><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-24870","post","type-post","status-publish","format-standard","hentry","category-programmation"],"_links":{"self":[{"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/posts\/24870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24870"}],"version-history":[{"count":1,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/posts\/24870\/revisions"}],"predecessor-version":[{"id":24871,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=\/wp\/v2\/posts\/24870\/revisions\/24871"}],"wp:attachment":[{"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.carlrobitaille.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}