SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to permutecolumn values

    hi,
    i m nw working with .net windows application...
    nw i m doing bucketization ... here i want to permute particular column values...
    i have any database and i also made the connection with sql...
    nw in that db attribute such as disease,amount,salary values has to be permuted

    like

    disease
    flu
    dyspesia
    cold
    bronch..



    has to be like dis

    disease
    bronch..
    flu
    cold
    dyspesia


    if i have any no of tuples it has to work ...ie it should not be in order....
    hope i ll get the ans soon.. thank u

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,147
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    Hi @vibcute ;

    I'm struggling a bit with what you are wanting to do here, so let me see if I have a grasp on the situation.

    You are receiving a list of items in the order of
    flu
    dyspesia
    cold
    bronch..

    However, you do not want to display them in that order, you want to create a random display order, one that might resemble
    bronch..
    flu
    cold
    dyspesia

    Is my understanding of your situation correct?

  3. #3
    SitePoint Member
    Join Date
    Feb 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ya u r correct...is it possible to randomize in c#??? is der any inbuilt function for this??

  4. #4
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,147
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    This link should help you out, I know I implemented something very similar in a project long ago.
    http://stackoverflow.com/questions/2...stt-in-c-sharp


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •