Randomly select group

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • allyn44@cox.net

    Randomly select group

    Hi--I ned to randomize a calculation result to put it into 1 of 2
    groups. Can I use the randomize funciton for this? Basically i ahve
    this:

    If sum> 0
    set group =1
    If sum < 0
    set group =2

    if sum =0

    I want it to randomly set group to either 1 or 2

    Any ideas?

    Thakns
    bob
  • allyn44@cox.net

    #2
    Re: Randomly select group

    oops--should have looked further in help--found what I needed :(

    bob


    On Fri, 17 Jun 2005 16:29:50 -0700, allyn44@cox.net wrote:
    [color=blue]
    >Hi--I ned to randomize a calculation result to put it into 1 of 2
    >groups. Can I use the randomize funciton for this? Basically i ahve
    >this:
    >
    >If sum> 0
    >set group =1
    >If sum < 0
    >set group =2
    >
    >if sum =0
    >
    >I want it to randomly set group to either 1 or 2
    >
    >Any ideas?
    >
    >Thakns
    >bob[/color]

    Comment

    Working...