Returns a random integer number between the numbers you specify
555007
public static int randbetween(EvaluationContext ctx, Object bottom, Object top) {
        int _bottom = Conversions.toInteger(bottom, ctx);
        int _top = Conversions.toInteger(top, ctx);

        return (int)(Math.random() * (_top + 1 - _bottom)) + _bottom;
    }
452843
def random(length: int = 8, chars: str = digits + ascii_lowercase) -> Iterator[str]:
    
    while True:
        yield "".join([choice(chars) for _ in range(length)])
159596
def get_random(min_pt, max_pt):
        """"""
        result = Point(random.random(), random.random())
        return result.get_component_product(max_pt - min_pt) + min_pt
1249010
public static Number random(Number min, Number max) {
		double minVal = min.doubleValue() - 1;
		double maxVal = max.doubleValue() + 1;
		double ret = Math.random() * (maxVal - minVal) + minVal;
		ret = Math.min(ret, max.doubleValue());
		ret = Math.max(ret, min.doubleValue());
		return ret;
	}
611699
function randc() {
	var num,
		c, i;

	// [1] Use bitwise `not` to convert the random number to a 32-bit integer, effectively flooring the float.
	// [2] Convert to a hexadecimal string.
	c = (~~( lcg()*MAX ) ).toString( 16 );

	// [3] If need be, pad with zeros.
	num = 6 - c.length;
	for ( i = 0; i < num; i++ ) {
		c = '0' + c;
	}
	return c;
}
657136
def random_digit_or_empty(self):
        
        if self.generator.random.randint(0, 1):
            return self.generator.random.randint(0, 9)
        else:
            return ''
129161
function () {
      var ran = Math.floor(Math.random() * 3);
      if (ran == 0) {
        return this._getStr();
      }
      if (ran == 1) {
        return this._getNum();
      }
      if (ran == 2) {
        return this._getBool();
      }
    }
1091575
def _randomString():
    """"""

    return ''.join(
        random.choice(string.ascii_uppercase + string.digits)
        for x in range(10))
1299386
function random() {
  var length = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  var range = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 36;

  return String.random(length, range);
}
515787
function generateAnotherInt(err, int) {
                  if (err) return callback(err)

                  if (ints.indexOf(int) > -1) {
                    // we already found that random number, run callback to make the loop again
                    callback()
                  } else {
                    // replace the integer in that position and run the loop again
                    ints[position] = int
                    callback()
                  }
                }
528827
def random_int(maximum_value):
	
	if maximum_value == 0:
		return 0
	elif maximum_value == 1:
		return random_bits(1)

	bits = math.floor(math.log2(maximum_value))
	result = random_bits(bits) + random_int(maximum_value - ((2 ** bits) - 1))
	return result
547047
def random(self):
        
        return '#' + random.randrange(256).encode('hex') + \
               random.randrange(256).encode('hex') + random.randrange(256).encode('hex')
764858
def do_random(context, seq):
    """"""
    try:
        return random.choice(seq)
    except IndexError:
        return context.environment.undefined('No random item, sequence was empty.')
463389
def random(self):
        
        minimum = self.minimum() or 0
        maximum = self.maximum() or 100
        return random.randint(minimum, maximum)
1263558
function randomString(length, chars) {
  length = length || 8;
  chars = chars || '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  var result = '';
  for (var i = length; i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)];
  return result;
}
595792
function randn() {
  var u, v, s;
  do {
    u = Math.random() * 2 - 1;
    v = Math.random() * 2 - 1;
    s = u * u + v * v;
  } while (s >= 1 || s == 0);
  s = Math.sqrt(-2 * Math.log(s) / s);
  return u * s;
}
705279
static int getRandomInt(int min, int max, Random random) {
		// Use random.nextInt as it guarantees a uniform distribution
		int maxForRandom = max - min + 1;
		return random.nextInt(maxForRandom) + min;
	}