Search:

Type: Posts; User: Jumgle

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,555

    pft..teacher who?

    pft..teacher who?
  2. Replies
    8
    Views
    1,555

    Perform a random binary test that passes with the...

    Perform a random binary test that passes with the given probability. If the test passes, then set x=probability * x .
    So for ex: if you have set of 10 numbers, half of them will give a binary...
  3. Replies
    8
    Views
    1,555

    can you check if this is correct? void...

    can you check if this is correct?

    void random(double probability)
    {
    int i,a[RAND_MAX],n=-1,r,c,x;
    for(i=0;i<RAND_MAX;i++)
    {
    n++;
    a[i]=random()%RAND_MAX;
    ...
  4. Replies
    8
    Views
    1,555

    random test help

    I'm stuck on this problem: Perform a random binary test that passes with the given probability. If the test passes, then set x=probability * x.

    I know how to generate a random number using rand()...
  5. Replies
    3
    Views
    1,267

    Actually, i want to store info about different...

    Actually, i want to store info about different types of gird kind of like a board say if i want to implement a chess board with current state of the board, next state of the board etc. and store that...
  6. Replies
    3
    Views
    1,267

    pointers and structures

    /*fill a m x n grid with 0 or 1 */
    I'm trying to return a pointer to the cell on the grid but I'm not getting the correct output..please help me figure out what I'm doing wrong.

    typedef enum
    {
    ...
Results 1 to 6 of 6