<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: Shell Random Number Generator	</title>
	<atom:link href="https://www.krazyworks.com/shell-random-number-generator/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.krazyworks.com/shell-random-number-generator/</link>
	<description>Networking, Systems Design, and Disaster Recovery</description>
	<lastBuildDate>Thu, 18 Jun 2015 14:22:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.7.9</generator>
	<item>
		<title>
		By: simply complicated		</title>
		<link>https://www.krazyworks.com/shell-random-number-generator/comment-page-1/#comment-247906</link>

		<dc:creator><![CDATA[simply complicated]]></dc:creator>
		<pubDate>Sat, 30 Mar 2013 18:12:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1481#comment-247906</guid>

					<description><![CDATA[Ok . So I am taking this challenge where you choose your pokemon based ona random number generator. The pokemon I have to train are Torterra, Giraferig, Hipowdon, Tentacruel, Roserade and Machoke. I need some help with moves for each pokemon and any other info you can give. I don&#039;t EV train or look at their natures, so none of that is needed.
Anybody who wants to try these challenges go to http://www.hupitgaming.com/forum/33-pokemon/637456-pokemon-challenges
]]></description>
			<content:encoded><![CDATA[<p>Ok . So I am taking this challenge where you choose your pokemon based ona random number generator. The pokemon I have to train are Torterra, Giraferig, Hipowdon, Tentacruel, Roserade and Machoke. I need some help with moves for each pokemon and any other info you can give. I don&#8217;t EV train or look at their natures, so none of that is needed.<br />
Anybody who wants to try these challenges go to <a href="http://www.hupitgaming.com/forum/33-pokemon/637456-pokemon-challenges" rel="nofollow ugc">http://www.hupitgaming.com/forum/33-pokemon/637456-pokemon-challenges</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: zigg3ns		</title>
		<link>https://www.krazyworks.com/shell-random-number-generator/comment-page-1/#comment-247625</link>

		<dc:creator><![CDATA[zigg3ns]]></dc:creator>
		<pubDate>Thu, 28 Mar 2013 20:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1481#comment-247625</guid>

					<description><![CDATA[An .exe file which can run 100,000 iterations per second when executed through command prompt runs only 50 iterations per second when made to run from another program using the system function. What may be the reason for this and more importantly how to speed it up? What I don&#039;t know is whether the function transfers control to the OS so that I could try to speed up the OS by may be increasing the RAM that the OS can use or whether it operates by itself in which case I could decrease the RAM that the OS can use so that more of it is available to my process. I have tried making it High Priority which increased the speed by about 20%, but my project requires that the speed increase to at least 200%. Further, the project specifically requires calling the process using system from another program. This is one requirement for which I don&#039;t think there is any way to bypass. 

The project I am working on is hoped to culminate in an Open Source Random Number Generator for which I am spending a lot of my time, money and effort. I request people out there to help me with this problem so that my desire of donating my time, money and effort for the betterment of the people is fulfilled.

Please help.
Thank you very much in anticipation.
IIT Kharagpur
I am looping myself so that I can get data from the process that the function runs, one at a time. The looping is happening using a for loop. When I loop the called process writing a code within itself without calling it from another program, it loops 100,000 times per second as mentioned above but it doesn&#039;t do the same when looped from outside using the system () function.

I will be happy to post the program, but since this is a collaborative project, I will first have to ask my colleagues. That may take a few days. But I think the information I have given should be pretty sufficient. Anyway, Sorry! Please understand.

The system that I am working on is Windows 7 (Ultimate), 1.5 GB RAM, Pentium Dual Core Processor (1.46 GHz and1.47 GHz).

Dear J, Are you sure that for loop is slower than a while loop? (I have been taught that for loop works faster than a while loop for doing exactly the same work that the for loop does.)
Dear Fred W Sir,

Thank you so much for your highly detailed and prompt reply.

system() has a great property that it returns the value returned by the called process. execl() works fantastically fast but sadly doesn&#039;t return the value returned by the called process which is a requirement since I use the value returned to generate a random number. popen and pclose do work but they also work at the same speed as system().

The 2nd option that you suggested gives an error on my system, from which, what I understand is that the system function doesn&#039;t understand the full Path (even though, surprisingly, exactly the same command works when inputted directly in command prompt).

Dear sir, I am novice for the remaining 3 options. Could you tell me among the remaining 3 options, which one is most promising and the source to learn them.

I am saving the values returned by the called process, which is same as those returned by system(), in a file (using C code).
]]></description>
			<content:encoded><![CDATA[<p>An .exe file which can run 100,000 iterations per second when executed through command prompt runs only 50 iterations per second when made to run from another program using the system function. What may be the reason for this and more importantly how to speed it up? What I don&#8217;t know is whether the function transfers control to the OS so that I could try to speed up the OS by may be increasing the RAM that the OS can use or whether it operates by itself in which case I could decrease the RAM that the OS can use so that more of it is available to my process. I have tried making it High Priority which increased the speed by about 20%, but my project requires that the speed increase to at least 200%. Further, the project specifically requires calling the process using system from another program. This is one requirement for which I don&#8217;t think there is any way to bypass. </p>
<p>The project I am working on is hoped to culminate in an Open Source Random Number Generator for which I am spending a lot of my time, money and effort. I request people out there to help me with this problem so that my desire of donating my time, money and effort for the betterment of the people is fulfilled.</p>
<p>Please help.<br />
Thank you very much in anticipation.<br />
IIT Kharagpur<br />
I am looping myself so that I can get data from the process that the function runs, one at a time. The looping is happening using a for loop. When I loop the called process writing a code within itself without calling it from another program, it loops 100,000 times per second as mentioned above but it doesn&#8217;t do the same when looped from outside using the system () function.</p>
<p>I will be happy to post the program, but since this is a collaborative project, I will first have to ask my colleagues. That may take a few days. But I think the information I have given should be pretty sufficient. Anyway, Sorry! Please understand.</p>
<p>The system that I am working on is Windows 7 (Ultimate), 1.5 GB RAM, Pentium Dual Core Processor (1.46 GHz and1.47 GHz).</p>
<p>Dear J, Are you sure that for loop is slower than a while loop? (I have been taught that for loop works faster than a while loop for doing exactly the same work that the for loop does.)<br />
Dear Fred W Sir,</p>
<p>Thank you so much for your highly detailed and prompt reply.</p>
<p>system() has a great property that it returns the value returned by the called process. execl() works fantastically fast but sadly doesn&#8217;t return the value returned by the called process which is a requirement since I use the value returned to generate a random number. popen and pclose do work but they also work at the same speed as system().</p>
<p>The 2nd option that you suggested gives an error on my system, from which, what I understand is that the system function doesn&#8217;t understand the full Path (even though, surprisingly, exactly the same command works when inputted directly in command prompt).</p>
<p>Dear sir, I am novice for the remaining 3 options. Could you tell me among the remaining 3 options, which one is most promising and the source to learn them.</p>
<p>I am saving the values returned by the called process, which is same as those returned by system(), in a file (using C code).</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Gamer959		</title>
		<link>https://www.krazyworks.com/shell-random-number-generator/comment-page-1/#comment-247377</link>

		<dc:creator><![CDATA[Gamer959]]></dc:creator>
		<pubDate>Wed, 27 Mar 2013 01:07:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1481#comment-247377</guid>

					<description><![CDATA[What is the best casino online play with? Lasvegas or Nobel casino or maybe some else?
]]></description>
			<content:encoded><![CDATA[<p>What is the best casino online play with? Lasvegas or Nobel casino or maybe some else?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Milk84		</title>
		<link>https://www.krazyworks.com/shell-random-number-generator/comment-page-1/#comment-247271</link>

		<dc:creator><![CDATA[Milk84]]></dc:creator>
		<pubDate>Tue, 26 Mar 2013 11:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1481#comment-247271</guid>

					<description><![CDATA[Okay, I&#039;m obviously not very adept at programming.  I understand that the following code will wipe a hard drive with zeros, but I&#039;m not understanding the first FOR command and also the if=/dev/random.  I would be very cool if someone could break down the code below and help me to understand what&#039;s what with it if possible.

Complete code:

for (( i = 0;i&#060;11;i++ )); do
dd if=/dev/random of=/dev/hda &#038;&#038; dd if=/dev/zero of=/dev/hda
done


2nd part of question:

If I wanted to create a batch file to do this to run in say Knoppix, how would I go about doing so?

Thanks a million for educating me.
]]></description>
			<content:encoded><![CDATA[<p>Okay, I&#8217;m obviously not very adept at programming.  I understand that the following code will wipe a hard drive with zeros, but I&#8217;m not understanding the first FOR command and also the if=/dev/random.  I would be very cool if someone could break down the code below and help me to understand what&#8217;s what with it if possible.</p>
<p>Complete code:</p>
<p>for (( i = 0;i&lt;11;i++ )); do<br />
dd if=/dev/random of=/dev/hda &amp;&amp; dd if=/dev/zero of=/dev/hda<br />
done</p>
<p>2nd part of question:</p>
<p>If I wanted to create a batch file to do this to run in say Knoppix, how would I go about doing so?</p>
<p>Thanks a million for educating me.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: SteveO		</title>
		<link>https://www.krazyworks.com/shell-random-number-generator/comment-page-1/#comment-247140</link>

		<dc:creator><![CDATA[SteveO]]></dc:creator>
		<pubDate>Mon, 25 Mar 2013 11:46:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1481#comment-247140</guid>

					<description><![CDATA[I started learning VBscript just to learn another type of code, and I was wondering what is the point of implementing VBscript since it only seems to work in IE? It seems that javascript would eliminate any need for VBscript.
]]></description>
			<content:encoded><![CDATA[<p>I started learning VBscript just to learn another type of code, and I was wondering what is the point of implementing VBscript since it only seems to work in IE? It seems that javascript would eliminate any need for VBscript.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: sean		</title>
		<link>https://www.krazyworks.com/shell-random-number-generator/comment-page-1/#comment-247098</link>

		<dc:creator><![CDATA[sean]]></dc:creator>
		<pubDate>Mon, 25 Mar 2013 06:46:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1481#comment-247098</guid>

					<description><![CDATA[I want to go about building some software that can do this:

Enable user to type in a website prefix (eg. www.example123.com/random/forum.php?id=)
Set up a number generator (so it could be random, or in order, from any value to any value, eg. 1 to 200)

Then the programme would work with your browser of choice- searching each website you&#039;ve generated, eg. www.example123.com/random/forum.php?id=1, www.example123.com/random/forum.php?id= 2, www.example123.com/random/forum.php?id=3

(All automatically)

Then present you at the end, (once it had completed all the searches) with a log of screenshots taken of the web addresses searched.

How on earth could I go about creating something like this? Is it even possible?
I hope I&#039;ve explained it clearly. As you can see, I have very limited knowledge of computer programming. 

Thanks!
]]></description>
			<content:encoded><![CDATA[<p>I want to go about building some software that can do this:</p>
<p>Enable user to type in a website prefix (eg. <a href="http://www.example123.com/random/forum.php?id=" rel="nofollow ugc">http://www.example123.com/random/forum.php?id=</a>)<br />
Set up a number generator (so it could be random, or in order, from any value to any value, eg. 1 to 200)</p>
<p>Then the programme would work with your browser of choice- searching each website you&#8217;ve generated, eg. <a href="http://www.example123.com/random/forum.php?id=1" rel="nofollow ugc">http://www.example123.com/random/forum.php?id=1</a>, <a href="http://www.example123.com/random/forum.php?id=" rel="nofollow ugc">http://www.example123.com/random/forum.php?id=</a> 2, <a href="http://www.example123.com/random/forum.php?id=3" rel="nofollow ugc">http://www.example123.com/random/forum.php?id=3</a></p>
<p>(All automatically)</p>
<p>Then present you at the end, (once it had completed all the searches) with a log of screenshots taken of the web addresses searched.</p>
<p>How on earth could I go about creating something like this? Is it even possible?<br />
I hope I&#8217;ve explained it clearly. As you can see, I have very limited knowledge of computer programming. </p>
<p>Thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JDOGG1122		</title>
		<link>https://www.krazyworks.com/shell-random-number-generator/comment-page-1/#comment-247003</link>

		<dc:creator><![CDATA[JDOGG1122]]></dc:creator>
		<pubDate>Sun, 24 Mar 2013 12:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1481#comment-247003</guid>

					<description><![CDATA[Instructions:  Do all of the following questions.  Please comment all lines as to show me what is happening.  Also make sure each script runs until the user decides to exit.  Use your  BASH Shell.  In addition to submitting a written copy of the code via the dropbox you MUST also create a folder in your UNIX account named, project.  In that folder should be all of the scripts you wrote for the final project, named final1, final2, etc.  You must also give me read and execute permissions.  If you do not submit your code and allow me to access your scripts you will not receive credit for the final project.  Programs written in other programming languages will not be accepted.  Finally, all scripts MUST loop until the user is done using it.


 

1. Create a program that will ask the user if they want to add, subtract, multiply or divide two user inputted numbers.  Then give the response as follows:


 

The sum of number1 and number 2 is: Answer


 

The difference of number1 and number2 is:  Answer


 

The product of number1 and number2 is:  Answer


 

The quotient of Number1 and Number2 is:  Answer


 

Please note:   ONLY IF the user enters 0 as the second number, let the user know that if they choose divide that a division by zero error will occur.


 

2. Create a program that will allow a user to type in a number, while the program outputs that number in words.  Example, if you typed in 21, the computer would respond with twenty-one.  Please allow the program to work for 0-30.  If a number typed in is not in that range, be sure to let the user know.


 

3. Write an If Statement that will allow the user to type in a month, then the program will respond with the holiday in that month.  (You only need to list 1 holiday per month.)  If there is no holiday, then have the computer respond there is no holiday in this month.  Also let the user know if they typed a month that does not exist.


 

4. Write a program that will allow a user to input as many numbers as the user wants (use &quot;q&quot; as the choice that ends the user input).  The program will then respond:


 

Highest Number: Answer


 

Lowest Number: Answer


 

Sum of the numbers: Answer


 

Average of the numbers: Answer


 

5.  Create a Number guessing game.  Have the computer pick a number from 0-60 using the Random Number Generator I provided.


 

Then allow the user to guess at the number until the user gets it right.  Please include the following:


 

a) Keep a counter of how many guesses were made, and then tell the user how many guesses it took.


 

b) As the user guesses, tell the user whether the guess is too high or too low.


 

6. Write a program that will allow a user to type in a number, then the number will either count up to the number provided by the user or count down from that number.  In addition, create a menu that will let the user choose which counter they wish to use.  In both cases that counter will either count down to 0, or start counting from 0.
]]></description>
			<content:encoded><![CDATA[<p>Instructions:  Do all of the following questions.  Please comment all lines as to show me what is happening.  Also make sure each script runs until the user decides to exit.  Use your  BASH Shell.  In addition to submitting a written copy of the code via the dropbox you MUST also create a folder in your UNIX account named, project.  In that folder should be all of the scripts you wrote for the final project, named final1, final2, etc.  You must also give me read and execute permissions.  If you do not submit your code and allow me to access your scripts you will not receive credit for the final project.  Programs written in other programming languages will not be accepted.  Finally, all scripts MUST loop until the user is done using it.</p>
<p>1. Create a program that will ask the user if they want to add, subtract, multiply or divide two user inputted numbers.  Then give the response as follows:</p>
<p>The sum of number1 and number 2 is: Answer</p>
<p>The difference of number1 and number2 is:  Answer</p>
<p>The product of number1 and number2 is:  Answer</p>
<p>The quotient of Number1 and Number2 is:  Answer</p>
<p>Please note:   ONLY IF the user enters 0 as the second number, let the user know that if they choose divide that a division by zero error will occur.</p>
<p>2. Create a program that will allow a user to type in a number, while the program outputs that number in words.  Example, if you typed in 21, the computer would respond with twenty-one.  Please allow the program to work for 0-30.  If a number typed in is not in that range, be sure to let the user know.</p>
<p>3. Write an If Statement that will allow the user to type in a month, then the program will respond with the holiday in that month.  (You only need to list 1 holiday per month.)  If there is no holiday, then have the computer respond there is no holiday in this month.  Also let the user know if they typed a month that does not exist.</p>
<p>4. Write a program that will allow a user to input as many numbers as the user wants (use &#8220;q&#8221; as the choice that ends the user input).  The program will then respond:</p>
<p>Highest Number: Answer</p>
<p>Lowest Number: Answer</p>
<p>Sum of the numbers: Answer</p>
<p>Average of the numbers: Answer</p>
<p>5.  Create a Number guessing game.  Have the computer pick a number from 0-60 using the Random Number Generator I provided.</p>
<p>Then allow the user to guess at the number until the user gets it right.  Please include the following:</p>
<p>a) Keep a counter of how many guesses were made, and then tell the user how many guesses it took.</p>
<p>b) As the user guesses, tell the user whether the guess is too high or too low.</p>
<p>6. Write a program that will allow a user to type in a number, then the number will either count up to the number provided by the user or count down from that number.  In addition, create a menu that will let the user choose which counter they wish to use.  In both cases that counter will either count down to 0, or start counting from 0.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dr Hank		</title>
		<link>https://www.krazyworks.com/shell-random-number-generator/comment-page-1/#comment-246777</link>

		<dc:creator><![CDATA[Dr Hank]]></dc:creator>
		<pubDate>Fri, 22 Mar 2013 18:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1481#comment-246777</guid>

					<description><![CDATA[Does anyone do it or know someone that does it?  What stakes do they play and how many hours a week do they play?
]]></description>
			<content:encoded><![CDATA[<p>Does anyone do it or know someone that does it?  What stakes do they play and how many hours a week do they play?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
