Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Selecting Random values
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
glen herrmannsfeldt  
View profile  
 More options Nov 1 2012, 12:46 am
Newsgroups: comp.lang.fortran
From: glen herrmannsfeldt <g...@ugcs.caltech.edu>
Date: Thu, 1 Nov 2012 04:46:33 +0000 (UTC)
Local: Thurs, Nov 1 2012 12:46 am
Subject: Re: Selecting Random values
e p chandler <e...@juno.com> wrote:

(snip)

> For example, in first row of data (211110122122), I need to write a program
> to read this row like this: 211 and write down in new file just one "1"
> randomely, then 110 and write down in new file one "1", then, 122 and etc.
> for all rows.

If you are always writing out a "1" then it is easier to
just write the "1" than to randomly select one from
a bunch of "1"s.

Now, what if there aren't any "1"s in the group?

-- glen


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.