Skip to content

Instantly share code, notes, and snippets.

View shehio's full-sized avatar

Shehab Yasser shehio

View GitHub Profile
@shehio
shehio / pi_mc.js
Last active December 8, 2022 17:00
Montecarlo Pi Generation
const zero = 0;
const one = 1;
const two = 2;
const thousand = 1000;
var Point = class {
constructor(x, y)
{
this.x = x;
this.y = y;
let disjointset = require("aureooms-js-disjoint-set");
const length = 3;
const zero = 0;
const one = 1;
class point {
constructor() {
this.visited = false;
this.set = null;
}