Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: A bad shuffle

by tlm (Prior)
on Mar 20, 2005 at 23:37 UTC ( [id://441074]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #include <stdlib.h>
    void shuffle(int *array, size_t n) {
    ...
        }
      }
    }
    
  2. or download this
      for (i = 0; i < n; i++) {
        size_t j = rand()/(RAND_MAX / n);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://441074]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-03-28 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found