code_junkie

Random distribution of data

Nov 11th, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. for (int i=0; i<numberOfExistingRows; i++)
  2. {
  3. int r = random();
  4. if (r > 0.5)
  5. {
  6. InsertRandomData();
  7. }
  8. }
Add Comment
Please, Sign In to add comment