{"id":7480,"date":"2020-08-24T09:45:01","date_gmt":"2020-08-24T07:45:01","guid":{"rendered":"https:\/\/outreach-wp.ixole.es\/?post_type=project&#038;p=7480\/"},"modified":"2020-08-25T09:31:39","modified_gmt":"2020-08-25T07:31:39","slug":"simulating-randomness","status":"publish","type":"project","link":"https:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/","title":{"rendered":"Simulating randomness"},"content":{"rendered":"<p>[et_pb_section fb_built=\u00bb1&#8243; admin_label=\u00bbsection\u00bb _builder_version=\u00bb4.5.1&#8243; background_color=\u00bb#e1e1e1&#8243; custom_padding=\u00bb0px||0px|\u00bb transparent_background=\u00bboff\u00bb make_fullwidth=\u00bboff\u00bb use_custom_width=\u00bboff\u00bb width_unit=\u00bbon\u00bb][et_pb_row column_structure=\u00bb1_3,1_3,1_3&#8243; use_custom_gutter=\u00bbon\u00bb gutter_width=\u00bb1&#8243; make_equal=\u00bbon\u00bb admin_label=\u00bbrow\u00bb module_class=\u00bb et_pb_row_fullwidth\u00bb _builder_version=\u00bb4.5.1&#8243; background_size=\u00bbinitial\u00bb background_position=\u00bbtop_left\u00bb background_repeat=\u00bbrepeat\u00bb width=\u00bb100%\u00bb width_tablet=\u00bb100%\u00bb width_phone=\u00bb\u00bb width_last_edited=\u00bbon|desktop\u00bb max_width=\u00bb100%\u00bb max_width_tablet=\u00bb100%\u00bb max_width_phone=\u00bb\u00bb max_width_last_edited=\u00bbon|desktop\u00bb custom_padding=\u00bb0px||0px|\u00bb hover_enabled=\u00bb0&#8243; make_fullwidth=\u00bbon\u00bb use_custom_width=\u00bboff\u00bb width_unit=\u00bbon\u00bb][et_pb_column type=\u00bb1_3&#8243; _builder_version=\u00bb4.5.1&#8243; background_color=\u00bb#3b4249&#8243; custom_padding=\u00bb45px|45px|22.5px|45px|false|false\u00bb custom_padding__hover=\u00bb|||\u00bb][et_pb_post_title meta=\u00bboff\u00bb featured_image=\u00bboff\u00bb _builder_version=\u00bb4.5.6&#8243; _module_preset=\u00bbdefault\u00bb title_text_color=\u00bb#d7ac2f\u00bb][\/et_pb_post_title][\/et_pb_column][et_pb_column type=\u00bb1_3&#8243; _builder_version=\u00bb4.5.1&#8243; background_color=\u00bb#d1d1cb\u00bb custom_padding=\u00bb45px|45px|22.5px|45px|false|false\u00bb custom_padding__hover=\u00bb|||\u00bb][et_pb_text admin_label=\u00bbTexto\u00bb _builder_version=\u00bb4.5.7&#8243; background_size=\u00bbinitial\u00bb background_position=\u00bbtop_left\u00bb background_repeat=\u00bbrepeat\u00bb use_border_color=\u00bboff\u00bb border_color=\u00bb#ffffff\u00bb border_style=\u00bbsolid\u00bb]<\/p>\n<h3><span style=\"color: #3b4249;\">mar benavides nebot<br \/><\/span><\/h3>\n<p><span style=\"color: #3b4249;\"><\/span><\/p>\n<h3><\/h3>\n<h4><span style=\"color: #3b4249;\">ies gelida &#8211; gelida<br \/><\/span><\/h4>\n<p>[\/et_pb_text][\/et_pb_column][et_pb_column type=\u00bb1_3&#8243; _builder_version=\u00bb4.5.1&#8243; background_color=\u00bb#d1d1cb\u00bb custom_padding=\u00bb45px|45px|22.5px|45px|false|false\u00bb custom_padding__hover=\u00bb|||\u00bb][et_pb_text admin_label=\u00bbTexto\u00bb _builder_version=\u00bb4.5.1&#8243; background_size=\u00bbinitial\u00bb background_position=\u00bbtop_left\u00bb background_repeat=\u00bbrepeat\u00bb use_border_color=\u00bboff\u00bb border_color=\u00bb#ffffff\u00bb border_style=\u00bbsolid\u00bb]<\/p>\n<p>What is randomness? Most of us have made this question ourselves sometimes. For me, it was broad and mysterious field. I had no information about it and lack of knowledge made me feel curious about the insights of randomness.<\/p>\n<p>I started the project with one word, randomness, from where I had to initiate my research. After acquiring some knowledge about the subject, I decided to focus on random numbers, the methods to generate them and their applicability in our lives.<\/p>\n<p>The work begins with an introduction to two subjects, that are essential to understand how random numbers can be generated: modular arithmetic and probability theory. Modular arithmetic is a system of arithmetic for integers, where numbers \u00abwrap around\u00bb upon reaching a certain value: the modulus. Probability theory is the branch of mathematics concerned with probability and the analysis of random phenomena.<\/p>\n<p>After that, it follows with a study of random numbers, i.e., sequences of numbers with three properties: uncorrelation, uniformity, and uniqueness. There are two principal methods to generate them depending on their application:<\/p>\n<ul>\n<li>True random numbers generators. They use physical and quantum physical features like thermal noise, quantum vacuum fluctuations and nuclear decay of radiation source, which assures uncorrelation, uniformity and uniqueness. They can be used in lottery, raffles, gambling and security (cryptography). It is the most secure system that guarantees nobody can obtain information about the sequences.<\/li>\n<li>Pseudo-random number generators. They are algorithms that generate uncorrelated sequences of numbers starting from a known seed value. There are often used to perform simulations and generate random samples. These algorithms the simplest and most efficient method to generate random numbers.<\/li>\n<\/ul>\n<p>Since it was not in my hands to create a true random number generator, I decided to write two computer algorithms in Python: the linear congruential generator and middle-square method. The longest sequence had 1,000,000 random numbers, which I used to perform some experiments: obtaining an approximation for Pi using the Monte Carlo method and simulating binomial and Poisson probability distributions and analysing them with the chi-squared test.<\/p>\n<p>As a conclusion, the choice of the best method to generate random numbers mostly depends on the application domain where then have to used<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=\u00bb4.5.1&#8243; _module_preset=\u00bbdefault\u00bb background_color=\u00bb#e1e1e1&#8243;][et_pb_column type=\u00bb4_4&#8243; _builder_version=\u00bb4.5.1&#8243; _module_preset=\u00bbdefault\u00bb background_color=\u00bb#e1e1e1&#8243;][et_pb_image src=\u00bbhttps:\/\/outreach-wp.ixole.es\/wp-content\/uploads\/2020\/08\/benavides.jpg\u00bb title_text=\u00bbbenavides\u00bb url=\u00bbhttps:\/\/outreach-wp.ixole.es\/wp-content\/uploads\/2020\/08\/benavides.jpg\u00bb align=\u00bbcenter\u00bb force_fullwidth=\u00bbon\u00bb _builder_version=\u00bb4.5.7&#8243; _module_preset=\u00bbdefault\u00bb hover_enabled=\u00bb0&#8243;][\/et_pb_image][et_pb_post_nav _builder_version=\u00bb4.5.1&#8243; _module_preset=\u00bbdefault\u00bb title_font=\u00bb|600|||||||\u00bb title_text_color=\u00bb#918050&#8243;][\/et_pb_post_nav][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=\u00bb1_3,1_3,1_3&#8243; use_custom_gutter=\u00bbon\u00bb gutter_width=\u00bb1&#8243; make_equal=\u00bbon\u00bb admin_label=\u00bbrow\u00bb module_class=\u00bb et_pb_row_fullwidth\u00bb _builder_version=\u00bb4.5.1&#8243; background_size=\u00bbinitial\u00bb background_position=\u00bbtop_left\u00bb background_repeat=\u00bbrepeat\u00bb width=\u00bb100%\u00bb width_tablet=\u00bb100%\u00bb width_phone=\u00bb\u00bb width_last_edited=\u00bbon|desktop\u00bb max_width=\u00bb100%\u00bb max_width_tablet=\u00bb100%\u00bb max_width_phone=\u00bb\u00bb max_width_last_edited=\u00bbon|desktop\u00bb custom_padding=\u00bb0px||0px|\u00bb make_fullwidth=\u00bbon\u00bb use_custom_width=\u00bboff\u00bb width_unit=\u00bbon\u00bb][et_pb_column type=\u00bb1_3&#8243; _builder_version=\u00bb4.5.1&#8243; background_color=\u00bb#e1e1e1&#8243; custom_padding=\u00bb|45px||45px|false|false\u00bb custom_padding__hover=\u00bb|||\u00bb][\/et_pb_column][et_pb_column type=\u00bb1_3&#8243; _builder_version=\u00bb4.5.1&#8243; background_color=\u00bb#e1e1e1&#8243; custom_padding=\u00bb|45px||45px|false|false\u00bb custom_padding__hover=\u00bb|||\u00bb][\/et_pb_column][et_pb_column type=\u00bb1_3&#8243; _builder_version=\u00bb4.5.1&#8243; background_color=\u00bb#e1e1e1&#8243; custom_padding=\u00bb|45px||45px|false|false\u00bb custom_padding__hover=\u00bb|||\u00bb][et_pb_button button_url=\u00bb@ET-DC@eyJkeW5hbWljIjp0cnVlLCJjb250ZW50IjoicG9zdF9saW5rX3VybF9wb3N0Iiwic2V0dGluZ3MiOnsicG9zdF9pZCI6IjYzNjUifX0=@\u00bb button_text=\u00bbBack to the projects\u00bb button_alignment=\u00bbleft\u00bb admin_label=\u00bbBot\u00f3n Dorado\u00bb module_id=\u00bbbotons\u00bb module_class=\u00bbbotons\u00bb _builder_version=\u00bb4.5.7&#8243; _dynamic_attributes=\u00bbbutton_url\u00bb custom_button=\u00bbon\u00bb button_text_color=\u00bb#918050&#8243; button_border_color=\u00bb#918050&#8243; button_icon_color=\u00bb#918050&#8243; button_on_hover=\u00bboff\u00bb hover_enabled=\u00bb0&#8243; custom_css_main_element=\u00bbmargin-top: 10px;\u00bb custom_css_after=\u00bb margin-left: 0px !important;\u00bb button_text_color_hover=\u00bb#918050&#8243; button_border_color_hover=\u00bb#918050&#8243; button_border_radius_hover=\u00bb0&#8243; button_letter_spacing_hover=\u00bb0&#8243; saved_tabs=\u00bball\u00bb button_text_size__hover_enabled=\u00bboff\u00bb button_one_text_size__hover_enabled=\u00bboff\u00bb button_two_text_size__hover_enabled=\u00bboff\u00bb button_text_color__hover_enabled=\u00bbon\u00bb button_text_color__hover=\u00bb#918050&#8243; button_one_text_color__hover_enabled=\u00bboff\u00bb button_two_text_color__hover_enabled=\u00bboff\u00bb button_border_width__hover_enabled=\u00bboff\u00bb button_one_border_width__hover_enabled=\u00bboff\u00bb button_two_border_width__hover_enabled=\u00bboff\u00bb button_border_color__hover_enabled=\u00bbon\u00bb button_border_color__hover=\u00bb#918050&#8243; button_one_border_color__hover_enabled=\u00bboff\u00bb button_two_border_color__hover_enabled=\u00bboff\u00bb button_border_radius__hover_enabled=\u00bbon\u00bb button_border_radius__hover=\u00bb0&#8243; button_one_border_radius__hover_enabled=\u00bboff\u00bb button_two_border_radius__hover_enabled=\u00bboff\u00bb button_letter_spacing__hover_enabled=\u00bbon\u00bb button_letter_spacing__hover=\u00bb0&#8243; button_one_letter_spacing__hover_enabled=\u00bboff\u00bb button_two_letter_spacing__hover_enabled=\u00bboff\u00bb button_bg_color__hover_enabled=\u00bboff\u00bb button_one_bg_color__hover_enabled=\u00bboff\u00bb button_two_bg_color__hover_enabled=\u00bboff\u00bb][\/et_pb_button][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>mar benavides nebot ies gelida &#8211; gelidaWhat is randomness? Most of us have made this question ourselves sometimes. For me, it was broad and mysterious field. I had no information about it and lack of knowledge made me feel curious about the insights of randomness. I started the project with one word, randomness, from where [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":""},"project_category":[225,248,226],"project_tag":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Simulating randomness - Outreach<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Simulating randomness - Outreach\" \/>\n<meta property=\"og:description\" content=\"mar benavides nebot ies gelida - gelidaWhat is randomness? Most of us have made this question ourselves sometimes. For me, it was broad and mysterious field. I had no information about it and lack of knowledge made me feel curious about the insights of randomness. I started the project with one word, randomness, from where [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/\" \/>\n<meta property=\"og:site_name\" content=\"Outreach\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-25T07:31:39+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/\",\"url\":\"https:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/\",\"name\":\"Simulating randomness - Outreach\",\"isPartOf\":{\"@id\":\"https:\/\/outreach-wp.ixole.es\/#website\"},\"datePublished\":\"2020-08-24T07:45:01+00:00\",\"dateModified\":\"2020-08-25T07:31:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\/\/outreach-wp.ixole.es\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Projects\",\"item\":\"https:\/\/outreach-wp.ixole.es\/ca\/project\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Simulating randomness\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/outreach-wp.ixole.es\/#website\",\"url\":\"https:\/\/outreach-wp.ixole.es\/\",\"name\":\"Outreach\",\"description\":\"ICFO&#039;s Outreach\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/outreach-wp.ixole.es\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"es\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Simulating randomness - Outreach","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:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/","og_locale":"es_ES","og_type":"article","og_title":"Simulating randomness - Outreach","og_description":"mar benavides nebot ies gelida - gelidaWhat is randomness? Most of us have made this question ourselves sometimes. For me, it was broad and mysterious field. I had no information about it and lack of knowledge made me feel curious about the insights of randomness. I started the project with one word, randomness, from where [&hellip;]","og_url":"https:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/","og_site_name":"Outreach","article_modified_time":"2020-08-25T07:31:39+00:00","twitter_card":"summary_large_image","twitter_misc":{"Tiempo de lectura":"6 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/","url":"https:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/","name":"Simulating randomness - Outreach","isPartOf":{"@id":"https:\/\/outreach-wp.ixole.es\/#website"},"datePublished":"2020-08-24T07:45:01+00:00","dateModified":"2020-08-25T07:31:39+00:00","breadcrumb":{"@id":"https:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/outreach-wp.ixole.es\/es\/project\/simulating-randomness\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/outreach-wp.ixole.es\/"},{"@type":"ListItem","position":2,"name":"Projects","item":"https:\/\/outreach-wp.ixole.es\/ca\/project\/"},{"@type":"ListItem","position":3,"name":"Simulating randomness"}]},{"@type":"WebSite","@id":"https:\/\/outreach-wp.ixole.es\/#website","url":"https:\/\/outreach-wp.ixole.es\/","name":"Outreach","description":"ICFO&#039;s Outreach","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/outreach-wp.ixole.es\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"es"}]}},"_links":{"self":[{"href":"https:\/\/outreach-wp.ixole.es\/es\/wp-json\/wp\/v2\/project\/7480"}],"collection":[{"href":"https:\/\/outreach-wp.ixole.es\/es\/wp-json\/wp\/v2\/project"}],"about":[{"href":"https:\/\/outreach-wp.ixole.es\/es\/wp-json\/wp\/v2\/types\/project"}],"author":[{"embeddable":true,"href":"https:\/\/outreach-wp.ixole.es\/es\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/outreach-wp.ixole.es\/es\/wp-json\/wp\/v2\/comments?post=7480"}],"version-history":[{"count":2,"href":"https:\/\/outreach-wp.ixole.es\/es\/wp-json\/wp\/v2\/project\/7480\/revisions"}],"predecessor-version":[{"id":7502,"href":"https:\/\/outreach-wp.ixole.es\/es\/wp-json\/wp\/v2\/project\/7480\/revisions\/7502"}],"wp:attachment":[{"href":"https:\/\/outreach-wp.ixole.es\/es\/wp-json\/wp\/v2\/media?parent=7480"}],"wp:term":[{"taxonomy":"project_category","embeddable":true,"href":"https:\/\/outreach-wp.ixole.es\/es\/wp-json\/wp\/v2\/project_category?post=7480"},{"taxonomy":"project_tag","embeddable":true,"href":"https:\/\/outreach-wp.ixole.es\/es\/wp-json\/wp\/v2\/project_tag?post=7480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}