<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>/Proc/Interrupts on Karpoke - Just Another Blog</title><link>http://karpoke.ignaciocano.com/tags//proc/interrupts/</link><description>Recent content in /Proc/Interrupts on Karpoke - Just Another Blog</description><generator>Hugo -- 0.159.0</generator><language>es</language><lastBuildDate>Sat, 25 Sep 2010 00:54:00 +0100</lastBuildDate><atom:link href="http://karpoke.ignaciocano.com/tags//proc/interrupts/index.xml" rel="self" type="application/rss+xml"/><item><title>Random Bash</title><link>http://karpoke.ignaciocano.com/2010/09/25/random-bash/</link><pubDate>Sat, 25 Sep 2010 00:54:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2010/09/25/random-bash/</guid><description>&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;&amp;ldquo;Los números aleatorios no deberían ser generados por un método
elegido aleatoriamente&amp;rdquo;. &lt;em&gt;Donald E. Knuth&lt;/em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;En Bash, podemos obtener números enteros &lt;a href="http://es.wikipedia.org/wiki/Aleatoriedad"&gt;aleatorios&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;$ echo $RANDOM
20684
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;img alt="Random number" loading="lazy" src="http://karpoke.ignaciocano.com/images/random_number-300x107.jpg"&gt;&lt;/p&gt;
&lt;p&gt;Cada vez que se referencia el parámetro &lt;a href="http://linux.die.net/man/1/bash"&gt;RANDOM&lt;/a&gt;, éste devuelve un
valor entre 0 y 32767, es decir, 2^15^-1. Podemos inicializar la
secuencia de números aleatorios asignando un valor a RANDOM. Debemos
tener en cuenta que si le asignamos un valor vacío a RANDOM se pierden
sus propiedades especiales, aunque después lo inicialicemos.&lt;/p&gt;</description></item></channel></rss>