<?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 using CL_ABAP_RANDOM_INT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874491#M1687455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How if &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;start value will be random, this code may be a generic solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lo_ran &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;CL_ABAP_RANDOM_INT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_i&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; lv_i &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;CL_ABAP_RANDOM&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;SEED&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; lo_ran &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;CL_ABAP_RANDOM_INT&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;CREATE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;seed &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_i&amp;nbsp; &lt;SPAN class="L0S52"&gt;MIN &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;5 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MAX &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;25 &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;do &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;20 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;times.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lv_i &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lo_ran&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;get_next&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;write &lt;/SPAN&gt;/ lv_i.&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;enddo.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2012 10:07:42 GMT</pubDate>
    <dc:creator>SharathYaralkattimath</dc:creator>
    <dc:date>2012-07-30T10:07:42Z</dc:date>
    <item>
      <title>Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874483#M1687447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get a random number using the class CL_ABAP_RANDOM_INT, but the following code always return 22. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; lo_ran &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;CL_ABAP_RANDOM_INT&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; lv_i&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; lo_ran &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;CL_ABAP_RANDOM_INT&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;CREATE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MIN &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;5 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MAX &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;25 &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;.&lt;BR /&gt; lv_i &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lo_ran&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;GET_NEXT&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;.&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="L0S52"&gt;WRITE &lt;/SPAN&gt;lv_i&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know, how to get random numbers using this class?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 07:27:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874483#M1687447</guid>
      <dc:creator>TimoScharmann</dc:creator>
      <dc:date>2012-07-30T07:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874484#M1687448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use this FM - SXMS_CREATE_RANDOM_NUMBER. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/843/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 07:36:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874484#M1687448</guid>
      <dc:creator>Aashish28</dc:creator>
      <dc:date>2012-07-30T07:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874485#M1687449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need a seed value at the initialization, to start with different start values. The instance will then produce a series of numbers which are approximately uniformly distributed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;report&amp;nbsp; zz_random_int.&lt;BR /&gt;data:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; lo_ran type ref to cl_abap_random_int,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; lv_i&amp;nbsp;&amp;nbsp; type i,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; lv_seed type i.&lt;/P&gt;&lt;P&gt;lv_seed = sy-timlo.&lt;BR /&gt;lo_ran = cl_abap_random_int=&amp;gt;create( min = 5 max = 25 seed = lv_seed ).&lt;BR /&gt;do 20 times.&lt;BR /&gt;&amp;nbsp; lv_i = lo_ran-&amp;gt;get_next( ).&lt;BR /&gt;&amp;nbsp; write / lv_i.&lt;BR /&gt;enddo.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 08:44:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874485#M1687449</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2012-07-30T08:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874486#M1687450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with and without using a seed value.&lt;/P&gt;&lt;P&gt;When you are using a loop and calling GET_NEXT in that it gives you Random numbers even without Seed value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shambu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 09:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874486#M1687450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-30T09:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874487#M1687451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I repeat. This is the way a pseudo random number generator is designed to work. No problem here! &lt;SPAN __jive_emoticon_name="grin" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/843/images/emoticons/grin.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may imagine it as an infinite series of randomly distributed numbers. With the seed, an entry point into this series is determined (by an algorithm). With successive calls of get_next, you read successive numbers from the list, starting with that entry point (actually, they are determined by an algorithm too, but it is helpful to visualize it as a list).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/Pseudorandom_number_generator"&gt;http://en.wikipedia.org/wiki/Pseudorandom_number_generator&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rüdiger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 09:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874487#M1687451</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2012-07-30T09:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874488#M1687452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;EM&gt; &lt;/EM&gt;I overlooked the below part.&lt;/P&gt;&lt;P&gt;lv_seed = sy-timlo.&lt;/P&gt;&lt;P&gt;This will give you random numbers unless you run it the same time every day. &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/843/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 09:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874488#M1687452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-30T09:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874489#M1687453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still don't agree. The start value is not "random", even when starting with different seed values. Only the sequence that is generated from then on, is guaranteed to be uniformly distributed (within certain bounds). &lt;/P&gt;&lt;P&gt;Regards, Rüdiger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 09:53:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874489#M1687453</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2012-07-30T09:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874490#M1687454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didnt say the start value will be random, what I said was if I execute the below statement&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;lo_ran = cl_abap_random_int=&amp;gt;create( min = 5 max = 25 seed = 10 ).&amp;nbsp;&amp;nbsp; ﻿&lt;/P&gt;&lt;P&gt;lv_i = lo_ran-&amp;gt;get_next( ).&amp;nbsp;&amp;nbsp; ﻿&lt;/P&gt;&lt;P&gt; write / lv_i.&amp;nbsp;&amp;nbsp; ﻿&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_i will be 21 always. So similarly if you feed the same time to the CREATE method, it will give you the same value always.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 09:59:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874490#M1687454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-30T09:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874491#M1687455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How if &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;start value will be random, this code may be a generic solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lo_ran &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;CL_ABAP_RANDOM_INT,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_i&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;i.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; lv_i &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;CL_ABAP_RANDOM&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;SEED&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; lo_ran &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;CL_ABAP_RANDOM_INT&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;CREATE&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;seed &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lv_i&amp;nbsp; &lt;SPAN class="L0S52"&gt;MIN &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;5 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;MAX &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;25 &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;do &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;20 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;times.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; lv_i &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;lo_ran&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;get_next&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;write &lt;/SPAN&gt;/ lv_i.&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;enddo.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 10:07:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874491#M1687455</guid>
      <dc:creator>SharathYaralkattimath</dc:creator>
      <dc:date>2012-07-30T10:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874492#M1687456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Shambu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, then I misunderstood you.&amp;nbsp; From this statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;This will give you random numbers unless you run it the same time every day.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought that you intended to generate just one single random number from the PRG. Next day, another number, and so on, and then assumed that these numbers were "random" in some sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the PRG doesn't assert that you get a sequence of random numbers when starting it with different seed values. (This will depend on the distribution of your seed values). It only asserts that&lt;EM&gt; a sequence of successive calls &lt;/EM&gt;of get_next( ) will be uniformly distributed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for being so scrupulous here... &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/843/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rüdiger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 10:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874492#M1687456</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2012-07-30T10:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874493#M1687457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sharath, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is what the docu of cl_abap_random=&amp;gt;seed( ) says: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Calculates an arbitrary start value for a pseudo-random generator from&lt;/P&gt;&lt;P&gt;different user data (such as time or user ID).&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is therefore similar to my sy-timlo solution. I only like to stress that the real "randomness" of all the CL_ABAP_RANDOM subclasses lies not in the start value, but in the series.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rüdiger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 10:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874493#M1687457</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2012-07-30T10:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874494#M1687458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rüdiger! This works fine!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 10:26:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874494#M1687458</guid>
      <dc:creator>TimoScharmann</dc:creator>
      <dc:date>2012-07-30T10:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874495#M1687459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rudiger et al.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i understand correctly the Seed is analogous to the PIN which we input into the secure token (e.g., the one we use to login to Bank portal) &amp;amp; it gives back a randomly generated number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And based on the pre-defined time interval a new number is generated (similar to the random numbers generated inside DO .. ENDDO iteration).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 11:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874495#M1687459</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2012-07-30T11:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874496#M1687460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Suhas, I think that's a good illustration. And the uniform random distribution is granted for the sequence. Regards, Rüdiger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 11:42:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874496#M1687460</guid>
      <dc:creator>Ruediger_Plantiko</dc:creator>
      <dc:date>2012-07-30T11:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Random number using CL_ABAP_RANDOM_INT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874497#M1687461</link>
      <description>&lt;P&gt;Hi dear Ashish.&lt;/P&gt;&lt;P&gt;You are absolutely right !!!.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 12:25:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/random-number-using-cl-abap-random-int/m-p/8874497#M1687461</guid>
      <dc:creator>Canet_1976</dc:creator>
      <dc:date>2019-07-09T12:25:23Z</dc:date>
    </item>
  </channel>
</rss>

