How to get a value from a table [UNSOLVED]

Hello here is my code

key = math.random(100, 900)
Lsink = {["a"]="c", ["c"]="a", ["d"]=true, ["e"] = "d"}


Gsink = {
    ["a"] = 1,
    ["b"] = -1,
    ["c"] = 20,
    ["d"] = 0.5,
    ["e"] = "h",
    ["f"] = 2,
    ["g"] = 40000,
    ["h"] = 30692,
    ["i"] = "d",
    ["j"] = "99",
    ["n"] = "Goi"
}

Fsink = {
    ["a"] = "b",
    ["b"] = false,
    ["c"] = "d",
    ["d"] = "f",
    ["f"] = "g",
    ["h"] = "a",
    ["i"] = Gsink["a"] * 2
}


I = {}

function G()
    return math.random(Gsink["a"], Gsink[Lsink["a"]])
end

function R(V)
    if tonumber(V) then
        V = V < Gsink[Fsink["c"]]
    else
        v = Lsink[Fsink["c"]]
    end
    V = tostring(V)
    V = string.reverse(V)
    C = {}
    for i = Gsink[Lsink["c"]], #V do
        CC = string.byte(V:sub(i, i))
        SC = bit32.rshift(CC, Gsink[Lsink["c"]])
        table.insert(C, string.char(SC))
    end
    ST = table.concat(C)
    if v then
        table.insert(I, math.floor(#I * Gsink[Fsink["c"]] + Gsink[Fsink["h"]]), ST)
    elseif math.random() > Gsink[Fsink[Lsink["a"]]] then
        table.insert(I, math.random(Gsink[Lsink["c"]], Gsink["g"]))
    else
        table.insert(I, ":" .. G() .. ":" .. G())
    end
end

for i = key, 1, -1 do
    R(math.random())
end

R(false)

I need help finding the value of

R(false)

in the table.

I = {}

Where would it be located?

1 Like

lowkey looks like schoolwork with the lack of naming anything
i get to true from that first if statement and then after the string functions its just utter nonsense what is your goal here

1 Like

This looks extremely messy and hard to read. What do you want? Can you just show us the relevant snippets of code?

1 Like

This just looks like a problem some Discord servers gives its members for a reward. I’m afraid you most likely aren’t going to get much help with it and the code is very clearly intended to be confusing and hard to read.

1 Like