<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: random number in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/random-number/m-p/2929798#M818211</link>
    <description>It couldn't be simpler, in the POSIX or Korn shell, ${RANDOM} is your boy.&lt;BR /&gt;&lt;BR /&gt;You can also do things like&lt;BR /&gt;RAND=$((${RANDOM} % 100)) to restrict to a rangle 0-99.&lt;BR /&gt;&lt;BR /&gt;There is also a more robust RNG in perl that is trivially easy to use.&lt;BR /&gt;</description>
    <pubDate>Tue, 18 Mar 2003 14:44:57 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2003-03-18T14:44:57Z</dc:date>
    <item>
      <title>random number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-number/m-p/2929796#M818209</link>
      <description>im looking for a way to generate a random number. i dont want to add any packages except for the base installation of hp-ux. if theres no way to do it, i have access to gcc, but my C knowledge is quite limited. so help with an easy random number generator in c would also be apriciated.</description>
      <pubDate>Tue, 18 Mar 2003 14:38:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-number/m-p/2929796#M818209</guid>
      <dc:creator>jim bidebo</dc:creator>
      <dc:date>2003-03-18T14:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: random number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-number/m-p/2929797#M818210</link>
      <description>You can do it with perl, which comes with HP-UX;&lt;BR /&gt;&lt;BR /&gt;# random number from 0 to 255&lt;BR /&gt;perl -e 'srand(time() ^ $$); while (1) { print int(rand(1)*256); }' | dd bs=8k of=/tmp/tt count=100&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Mar 2003 14:42:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-number/m-p/2929797#M818210</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-03-18T14:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: random number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-number/m-p/2929798#M818211</link>
      <description>It couldn't be simpler, in the POSIX or Korn shell, ${RANDOM} is your boy.&lt;BR /&gt;&lt;BR /&gt;You can also do things like&lt;BR /&gt;RAND=$((${RANDOM} % 100)) to restrict to a rangle 0-99.&lt;BR /&gt;&lt;BR /&gt;There is also a more robust RNG in perl that is trivially easy to use.&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Mar 2003 14:44:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-number/m-p/2929798#M818211</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-03-18T14:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: random number</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/random-number/m-p/2929799#M818212</link>
      <description>Jim&lt;BR /&gt;&lt;BR /&gt;There is an environment varialbe named RANDOM.  Each time, each time you run it, you have a different number.&lt;BR /&gt;Try this at a comman prompt several times to see for yourself:&lt;BR /&gt;&lt;BR /&gt;# echo $RANDOM&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Hai</description>
      <pubDate>Tue, 18 Mar 2003 14:45:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/random-number/m-p/2929799#M818212</guid>
      <dc:creator>Hai Nguyen_1</dc:creator>
      <dc:date>2003-03-18T14:45:06Z</dc:date>
    </item>
  </channel>
</rss>

