C

@Cvullo

Bnum

Lua
3 years ago
-- made by idontthinkofacool -- put number in input as 1e(any number as long ad it has less than 303 0s) dont put parentheses though -- example(1e100) or (1e8303447937337) -- bnum used for getting numbers past the lua limit --BigNum mode in EternityNum. Used for <10^10^308 accurate calculation. local xN = {} function xN.short(bnum) bnum = xN.errorcorrection(bnum) local SNumber = bnum[2] local SNumber1 = bnum[1]

Bnum Functions

Lua
4 years ago
-- made by idontthinkofacool --BigNum mode in EternityNum. Used for <10^10^308 accurate calculation. local xN = {} function xN.short(bnum) bnum = xN.errorcorrection(bnum) local SNumber = bnum[2] local SNumber1 = bnum[1] local leftover = math.fmod(SNumber, 3) SNumber = math.floor(SNumber / 3)

Said function

Lua
4 years ago
function said(word, str) return word..", ".."'"..str.."'" end print("Jacob "..said("exclaimed", "I't wasn't me!"))

ok better

Lua
4 years ago
function basen(n,b) n = math.floor(n) if not b or b == 10 then return tostring(n) end local digits = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" local t = {} local sign = "" if n < 0 then sign = "" n = -n end

WIP

Lua
4 years ago
local alp = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"} local num = 1 local str = alp[num] repeat num = num + (1*#str) if #str == 1 then str = alp[num] end if num >= math.ceil((math.pow(#alp, #str))) then

Test

Lua
4 years ago
local mather = {} mather.__index = math mather.e = math.exp(1) function mather.ln(numb) return math.log(numb) end function mather.log(numb)

Idkkkkkkk

Lua
4 years ago
local parts = { 1, 2, 3, 4, 5, 6 } local ran = math.random(1,6)

Idkk

Lua
4 years ago
function sqroot(n) if n > 0 then return math.sqrt(n) else return "cant compute" end end function pi() return 3.141592653589793238462643 end

Idk at this point

Lua
4 years ago
local a = 1 local b = 1 local c = 0 repeat a = a + (1 * (b * 5.5) * (c * 25)) c = c + math.pow(a, 0.5) if c >= 100 then b = b + math.pow(b, 0.1) c = c - 100 end

Table table table table table

Lua
4 years ago
local ae = { aa = 1, cv = 14, Na = nil, null = nil, s = { s1 = "nil", s2 = "String", s3 = { ["s3.3"] = 1.1,

Random Text Simulator

Lua
4 years ago
local idk = { "", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z" } local ae = 2 local ae2 = 1

Unfinished

Lua
4 years ago
local appluck = 1 local ev = 1 local ae = 1 local min = 1 local max = 1 local r1 = ((1/(math.random(1, 1)/3)/appluck)/ev) local r2 = ((1/(math.random(1, 1)/9)/appluck)/ev) local n1 = math.random(1, r1) local n2 = math.random(1, r2)

Advanced rng

Lua
4 years ago
local eb = 2 local appluck = 1 local cash = 0 local ce = 5 repeat print("----------") local cost = math.pow(appluck, 0.65) local rarnum = ((1/(math.random(1, 1)/5000)/appluck)/eb) local ae = ((1/(math.random(1, 1)/75000)/appluck)/eb) local r = ((1/(math.random(1, 1)/825000)/appluck)/eb)

Rng

Lua
4 years ago
-- your list of items, I tend to have these in a seperate module local items = { {Name = "Iron Sword"}, {Name = "Iron"}, {Name = "Gold"} } --[[ a loot table, it's wise to keep these seperate from your item list as it allows you to make multiple loot tables

RNG

Lua
4 years ago
local idk = 0 local idk2 = 0 repeat repeat ran = math.random(1,2) idk = idk + 1 until ran == 1 if idk > idk2 then idk2 = idk

RNG

Lua
4 years ago
local idk = 0 local idk2 = 0 repeat repeat ran = math.random(1,2) idk = idk + 1 until ran == 1 if idk > idk2 then idk2 = idk

RNG

Lua
4 years ago
local idk = 0 local idk2 = 0 repeat repeat ran = math.random(1,2) idk = idk + 1 until ran == 1 if idk > idk2 then idk2 = idk

Random Sentence Generator

Lua
4 years ago
local noun = { "Bill", "Jane", "Kate", "Joe" } local verb = { "has", "was", "is",

Random Text

Lua
4 years ago
local ab = { "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z" } local eos = {

Idkkkk

Lua
4 years ago
local ae = { "a", "e", "i", "o", "u" } local ranNum = math.random(1,5) local rn2 = math.random(1,5)