L

@LuaLearner040706

tseting seed

Lua
1 year ago
--Assume seed for 2 chunks is T4AC D2HG --loop through seed, chunk1.type = Tree, Chunk ID = "T4AC" --Save the seed, each time game loads you redo that loop, -- [Tree or Deposit 1, 2] [Amount of Trees or Deposits, 1-8] [Three digit id] [3 digit arra

Logarithmic Digits Rule

Lua
1 year ago
local a = 200 local b = 2 local L = b * math.log10(a) local f = L - math.floor(L) print((10^f) * 10) -- Proof print(20^2)

random lua thing

Lua
1 year ago
local options = { [1] = function(a, b) return a + b end, [2] = function(a, b) return a - b end, [3] = function(a, b) return a * b end,

CS HW2

Java
1 year ago
import java.util.Scanner; // 1 class Main { public static void main(String[] args) { String framework = "%-15s%15s%15s%15s%15s%15s\n"; System.out.printf(framework,"","Monday", "Tuesday", "Wednesday", "Thursday", "Fri

THIND :D

Lua
1 year ago
local name = "Brandon Lam" local short = string.sub(name, 1, 6) local NumValues = {78, 7, 74, 1, 19, 12, 62} local NewLetters = {} -- 78, 73, 71, 71, 69, 82, 65 for i = 1, #short do local letter = string.sub(short, i, i) local ltr = (NumVal

testing v3

Python
2 years ago
import decimal x = decimal.Decimal('1e900000000000000000') print(x) x =decimal.Decimal('10.12345678901234567890') print(x)

t

Python
2 years ago
# EIdx{Number;EAmnt} # format | 1e5 -> 1E[0]5 -> 0{1;5}

rng maker demo

Python
2 years ago
import random def format(amount): num, rarityList = 100, [] for i in range(amount): rarityList.append(num) num /= random.randint(17, 37) / 10 if i >= 4: num = round(num, 2) else:

storing functions

NodeJS
2 years ago
function Add(...numbers) { var sciIndex = []; var SplitNums = []; var PostElist = []; for (var i = 0; i < numbers.length; i++) { if (isScientific(numbers[i])) { sciIndex.push(numbers[i]) } else {

InfinityNum V4 - PAUSED

NodeJS
2 years ago
/* starting with basic functions, then will handle suffixes later -------- INTIGER LIMIT IS 9.9e308 -------- ignore this */ const OriginalNumber = '1e

number to boolean

NodeJS
2 years ago
var num = '3e6'; const values = { numNew: parseFloat(num.split("e")[1]), exp: parseFloat(num.split("e")[0]) }; function findNum() { var v = [] for (var i = 0; i < values.numNew; i++) {

ai

NodeJS
2 years ago
const greetings = ["Hello","Hi","Hey","Greetings","Good morning","Good afternoon","Good evening",]; const greetingsAfter =["How are you?", "How's it going?", "What's up?", "How's everything?", "How are things?"]; const readline = require('readline')

stupid graph

NodeJS
2 years ago
const x = 10; const y = 4; var GraphData = { Xinc: 1, Yinc: 1, Zinc: undefined, Quadrant: undefined } var graph2 = "----------+----------" if (x > (10 * GraphData.Xinc)) {

formulas

NodeJS
2 years ago
const a = "x"; const b = 4; const c = 6; var x; function PythagoreanTherum(a,b,c) { if (a === "x") { x = (Math.sqrt((c*c)-(b*b))); } else if (b === "x") { x = (Math.sqrt((c*c)-(a*a))); } else if (c === "x") { x = (Math.sqrt((a*a) + (b*b

Calculator Setup

NodeJS
2 years ago
// basic math const number1 = 2; const number2 = 4; const numberSingle = 10; // for functions that only require one number /*console.log("~~~~ Numbers ~~~~ ") console.log("Number1: " + number1); console.log("Number2: " + number2); console.log("Pi:

python in java idk

NodeJS
2 years ago
print(1 + "1" + " hi") function print(p) { console.log(p) } // why would you make this you dumbass - thomas 2024

Advanced Number Handler Algorithm V3.0

NodeJS
2 years ago
/* Advanced Number Handler Algorithm - Made by Thomas | Distribution, selling or usage of this program is prohibited !!! READ FIRST !!! Notations that work: (A = Coeficent, B = Exponent, {e, E, E[0-2]} = Notation) AeB ->

BACKUPS

NodeJS
2 years ago
var Sets = ["Thousand", "Million", "Billion"]; var FirstOnes = ["", "Un", "Duo", "Trillion", "Quadrillion", "Quintillion", "Sextillion", "Septillion", "Octillion", "Nonillion"]; var SecondOnes = ["", "Decillion", "Vigintillion", "Trigintillion", "

Number handler java

NodeJS
2 years ago
var number = '1e3003' // number only works for numbers less than 1e309 anything past that must be a string var fnum, Coef, capE, Expn2, Expn3 var Expn2 = 0, SetV = -1 var MultiNum = "" console.log("Original Number: " + number) // Number limit rais

JS for loop array

NodeJS
2 years ago
var test = [ {name: "uh", num: 7,}, {name: "huh", num: 10,}, ] for (let i = 0; i < test.name; i++) { console.log(name[i]) }