# Random points

From JSXGraph Wiki

Revision as of 15:27, 7 December 2008 by A WASSERMANN (talk | contribs)

### Draw 100 random points

```
board = JXG.JSXGraph.initBoard('box', {originX: 10, originY:390 , unitX:380 , unitY: 380});
function reload() {
JXG.JSXGraph.freeBoard(board);
board = JXG.JSXGraph.initBoard('box', {originX: 10, originY: 390, unitX: 380, unitY: 380});
board.suspendUpdate();
for (var i=0;i<100;i++) {
var p = board.createElement('point',
[Math.random(),Math.random()],{style:5,name:' '});
}
board.unsuspendUpdate();
}
reload();
```

### Draw 100 random points

These 100 points are updated on the onmouseover event and get new random coordinates.