{"id":7511,"date":"2020-08-24T09:45:01","date_gmt":"2020-08-24T07:45:01","guid":{"rendered":"https:\/\/outreach-wp.ixole.es\/project\/simulating-randomness\/"},"modified":"2020-08-25T09:33:33","modified_gmt":"2020-08-25T07:33:33","slug":"simulating-randomness","status":"publish","type":"project","link":"https:\/\/outreach-wp.ixole.es\/ca\/project\/simulating-randomness\/","title":{"rendered":"Simulating randomness"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; _builder_version=&#8221;4.5.1&#8243; background_color=&#8221;#e1e1e1&#8243; custom_padding=&#8221;0px||0px|&#8221; transparent_background=&#8221;off&#8221; make_fullwidth=&#8221;off&#8221; use_custom_width=&#8221;off&#8221; width_unit=&#8221;on&#8221;][et_pb_row column_structure=&#8221;1_3,1_3,1_3&#8243; use_custom_gutter=&#8221;on&#8221; gutter_width=&#8221;1&#8243; make_equal=&#8221;on&#8221; admin_label=&#8221;row&#8221; module_class=&#8221; et_pb_row_fullwidth&#8221; _builder_version=&#8221;4.5.1&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; width=&#8221;100%&#8221; width_tablet=&#8221;100%&#8221; width_phone=&#8221;&#8221; width_last_edited=&#8221;on|desktop&#8221; max_width=&#8221;100%&#8221; max_width_tablet=&#8221;100%&#8221; max_width_phone=&#8221;&#8221; max_width_last_edited=&#8221;on|desktop&#8221; custom_padding=&#8221;0px||0px|&#8221; make_fullwidth=&#8221;on&#8221; use_custom_width=&#8221;off&#8221; width_unit=&#8221;on&#8221;][et_pb_column type=&#8221;1_3&#8243; _builder_version=&#8221;4.5.1&#8243; background_color=&#8221;#3b4249&#8243; custom_padding=&#8221;45px|45px|22.5px|45px|false|false&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_post_title meta=&#8221;off&#8221; featured_image=&#8221;off&#8221; _builder_version=&#8221;4.5.6&#8243; _module_preset=&#8221;default&#8221; title_text_color=&#8221;#d7ac2f&#8221;][\/et_pb_post_title][\/et_pb_column][et_pb_column type=&#8221;1_3&#8243; _builder_version=&#8221;4.5.1&#8243; background_color=&#8221;#d1d1cb&#8221; custom_padding=&#8221;45px|45px|22.5px|45px|false|false&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text admin_label=&#8221;Texto&#8221; _builder_version=&#8221;4.5.7&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/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=&#8221;1_3&#8243; _builder_version=&#8221;4.5.1&#8243; background_color=&#8221;#d1d1cb&#8221; custom_padding=&#8221;45px|45px|22.5px|45px|false|false&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text admin_label=&#8221;Texto&#8221; _builder_version=&#8221;4.5.1&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/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 &#8220;wrap around&#8221; 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=&#8221;4.5.1&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#e1e1e1&#8243;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.5.1&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#e1e1e1&#8243;][et_pb_image src=&#8221;https:\/\/outreach-wp.ixole.es\/wp-content\/uploads\/2020\/08\/benavides.jpg&#8221; title_text=&#8221;benavides&#8221; url=&#8221;https:\/\/outreach-wp.ixole.es\/wp-content\/uploads\/2020\/08\/benavides.jpg&#8221; align=&#8221;center&#8221; force_fullwidth=&#8221;on&#8221; _builder_version=&#8221;4.5.7&#8243; _module_preset=&#8221;default&#8221;][\/et_pb_image][et_pb_post_nav _builder_version=&#8221;4.5.1&#8243; _module_preset=&#8221;default&#8221; title_font=&#8221;|600|||||||&#8221; title_text_color=&#8221;#918050&#8243;][\/et_pb_post_nav][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=&#8221;1_3,1_3,1_3&#8243; use_custom_gutter=&#8221;on&#8221; gutter_width=&#8221;1&#8243; make_equal=&#8221;on&#8221; admin_label=&#8221;row&#8221; module_class=&#8221; et_pb_row_fullwidth&#8221; _builder_version=&#8221;4.5.1&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; width=&#8221;100%&#8221; width_tablet=&#8221;100%&#8221; width_phone=&#8221;&#8221; width_last_edited=&#8221;on|desktop&#8221; max_width=&#8221;100%&#8221; max_width_tablet=&#8221;100%&#8221; max_width_phone=&#8221;&#8221; max_width_last_edited=&#8221;on|desktop&#8221; custom_padding=&#8221;0px||0px|&#8221; make_fullwidth=&#8221;on&#8221; use_custom_width=&#8221;off&#8221; width_unit=&#8221;on&#8221;][et_pb_column type=&#8221;1_3&#8243; _builder_version=&#8221;4.5.1&#8243; background_color=&#8221;#e1e1e1&#8243; custom_padding=&#8221;|45px||45px|false|false&#8221; custom_padding__hover=&#8221;|||&#8221;][\/et_pb_column][et_pb_column type=&#8221;1_3&#8243; _builder_version=&#8221;4.5.1&#8243; background_color=&#8221;#e1e1e1&#8243; custom_padding=&#8221;|45px||45px|false|false&#8221; custom_padding__hover=&#8221;|||&#8221;][\/et_pb_column][et_pb_column type=&#8221;1_3&#8243; _builder_version=&#8221;4.5.1&#8243; background_color=&#8221;#e1e1e1&#8243; custom_padding=&#8221;|45px||45px|false|false&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_button button_url=&#8221;@ET-DC@eyJkeW5hbWljIjp0cnVlLCJjb250ZW50IjoicG9zdF9saW5rX3VybF9wb3N0Iiwic2V0dGluZ3MiOnsicG9zdF9pZCI6IjYzNjUifX0=@&#8221; button_text=&#8221;Tornar als projectes&#8221; button_alignment=&#8221;left&#8221; admin_label=&#8221;Bot\u00f3n Dorado&#8221; module_id=&#8221;botons&#8221; module_class=&#8221;botons&#8221; _builder_version=&#8221;4.5.7&#8243; _dynamic_attributes=&#8221;button_url&#8221; custom_button=&#8221;on&#8221; button_text_color=&#8221;#918050&#8243; button_border_color=&#8221;#918050&#8243; button_icon_color=&#8221;#918050&#8243; button_on_hover=&#8221;off&#8221; hover_enabled=&#8221;0&#8243; custom_css_main_element=&#8221;margin-top: 10px;&#8221; custom_css_after=&#8221; margin-left: 0px !important;&#8221; button_text_color_hover=&#8221;#918050&#8243; button_border_color_hover=&#8221;#918050&#8243; button_border_radius_hover=&#8221;0&#8243; button_letter_spacing_hover=&#8221;0&#8243; saved_tabs=&#8221;all&#8221; button_text_size__hover_enabled=&#8221;off&#8221; button_one_text_size__hover_enabled=&#8221;off&#8221; button_two_text_size__hover_enabled=&#8221;off&#8221; button_text_color__hover_enabled=&#8221;on&#8221; button_text_color__hover=&#8221;#918050&#8243; button_one_text_color__hover_enabled=&#8221;off&#8221; button_two_text_color__hover_enabled=&#8221;off&#8221; button_border_width__hover_enabled=&#8221;off&#8221; button_one_border_width__hover_enabled=&#8221;off&#8221; button_two_border_width__hover_enabled=&#8221;off&#8221; button_border_color__hover_enabled=&#8221;on&#8221; button_border_color__hover=&#8221;#918050&#8243; button_one_border_color__hover_enabled=&#8221;off&#8221; button_two_border_color__hover_enabled=&#8221;off&#8221; button_border_radius__hover_enabled=&#8221;on&#8221; button_border_radius__hover=&#8221;0&#8243; button_one_border_radius__hover_enabled=&#8221;off&#8221; button_two_border_radius__hover_enabled=&#8221;off&#8221; button_letter_spacing__hover_enabled=&#8221;on&#8221; button_letter_spacing__hover=&#8221;0&#8243; button_one_letter_spacing__hover_enabled=&#8221;off&#8221; button_two_letter_spacing__hover_enabled=&#8221;off&#8221; button_bg_color__hover_enabled=&#8221;off&#8221; button_one_bg_color__hover_enabled=&#8221;off&#8221; button_two_bg_color__hover_enabled=&#8221;off&#8221;][\/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":[215,209,222],"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\/ca\/project\/simulating-randomness\/\" \/>\n<meta property=\"og:locale\" content=\"ca_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\/ca\/project\/simulating-randomness\/\" \/>\n<meta property=\"og:site_name\" content=\"Outreach\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-25T07:33:33+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/outreach-wp.ixole.es\/ca\/project\/simulating-randomness\/\",\"url\":\"https:\/\/outreach-wp.ixole.es\/ca\/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:33:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/outreach-wp.ixole.es\/ca\/project\/simulating-randomness\/#breadcrumb\"},\"inLanguage\":\"ca-ES\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/outreach-wp.ixole.es\/ca\/project\/simulating-randomness\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/outreach-wp.ixole.es\/ca\/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\":\"ca-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\/ca\/project\/simulating-randomness\/","og_locale":"ca_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\/ca\/project\/simulating-randomness\/","og_site_name":"Outreach","article_modified_time":"2020-08-25T07:33:33+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/outreach-wp.ixole.es\/ca\/project\/simulating-randomness\/","url":"https:\/\/outreach-wp.ixole.es\/ca\/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:33:33+00:00","breadcrumb":{"@id":"https:\/\/outreach-wp.ixole.es\/ca\/project\/simulating-randomness\/#breadcrumb"},"inLanguage":"ca-ES","potentialAction":[{"@type":"ReadAction","target":["https:\/\/outreach-wp.ixole.es\/ca\/project\/simulating-randomness\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/outreach-wp.ixole.es\/ca\/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":"ca-ES"}]}},"_links":{"self":[{"href":"https:\/\/outreach-wp.ixole.es\/ca\/wp-json\/wp\/v2\/project\/7511"}],"collection":[{"href":"https:\/\/outreach-wp.ixole.es\/ca\/wp-json\/wp\/v2\/project"}],"about":[{"href":"https:\/\/outreach-wp.ixole.es\/ca\/wp-json\/wp\/v2\/types\/project"}],"author":[{"embeddable":true,"href":"https:\/\/outreach-wp.ixole.es\/ca\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/outreach-wp.ixole.es\/ca\/wp-json\/wp\/v2\/comments?post=7511"}],"version-history":[{"count":1,"href":"https:\/\/outreach-wp.ixole.es\/ca\/wp-json\/wp\/v2\/project\/7511\/revisions"}],"predecessor-version":[{"id":7512,"href":"https:\/\/outreach-wp.ixole.es\/ca\/wp-json\/wp\/v2\/project\/7511\/revisions\/7512"}],"wp:attachment":[{"href":"https:\/\/outreach-wp.ixole.es\/ca\/wp-json\/wp\/v2\/media?parent=7511"}],"wp:term":[{"taxonomy":"project_category","embeddable":true,"href":"https:\/\/outreach-wp.ixole.es\/ca\/wp-json\/wp\/v2\/project_category?post=7511"},{"taxonomy":"project_tag","embeddable":true,"href":"https:\/\/outreach-wp.ixole.es\/ca\/wp-json\/wp\/v2\/project_tag?post=7511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}