My problem is this: I want the first number to determine which of the other 2+ numbers is selected. For example, if I have 2 other numbers (let's say 66 and 25), the first number being below 49 would result in 66 being selected, the number being above 50 would result in 25 being selected.
local n = tostring( secret:sub( i, i ):byte()^current:sub( i, i ):byte() ) if #n < 5 then new = new .. string.char( tonumber( n:sub( 1, 2 ) ) ) else local choices = math.ceil( #n - 2 ) --#range = 0, 99 local decision = tonumber( n:sub( 1, 2 ) ) --#what do I do here?? I'm lost. end
(secret and current are strings, this is in a loop)











