View Single Post
  #5  
Old June 26th 17, 05:26 PM posted to alt.windows7.general
T
external usenet poster
 
Posts: 4,600
Default TICK NUMBERS!!!!!!!!!!

On 06/26/2017 09:19 AM, T wrote:
On 06/26/2017 09:15 AM, Good Guy wrote:
On 26/06/2017 17:11, T wrote:
On 06/23/2017 09:15 PM, Good Guy wrote:

for (i = 1; i 10; i++)
{
Console.WriteLine("Ticks #{0}: {1}",
i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

for (i = 10; i 20; i++)
{
Console.WriteLine("Ticks #{0}: {1}",
i.ToString("D2"), rnd.Next(1, 60).ToString("D2") );
// int ticks = rnd.Next(1, 60);
}

|


Hi Guy,

Loops, random numbers, and formatted strings. Why did you
post this? Was it in response to a question someone posted
about C?

-T


We get all sorts here and I can't remember what this was for. My TB
keeps messages for 1 (one) day only so I don't have anything to check
against!!.


Well, the code sure was pretty. It was a good example
of formatted strings. Very easy to understand.


"C" gives me a migraine. I usually do my heavy coding in
Perl 6. Sometimes Perl 5, if the modules haven't been fully
ported to 6. Perl can be made into a write only language
if you are not careful.

A lot of programmers use stream of conscience, making their code
devilishly difficult to understand. And the try to cram as
much on one line as possible to prove they can do it. Making
it worse to understand. Perl is really bad for this.

I was just admiring your easy to read layout.

I use "top down", which makes my code very easy to understand.
(I comes from a Modula 2 background.)
Ads