1

**Programmer Mode / How to have a random number for script ?**

« **on:**April 08, 2019, 10:41:02 am »

Hi all,

I would like to know if it's possible to have a random number for a script ?

I make like 2 000 script so if I win the script for exemple I want to open an other script by random.

Thanks in advance if someone can help me

I would like to know if it's possible to have a random number for a script ?

I make like 2 000 script so if I win the script for exemple I want to open an other script by random.

Code: [Select]

`bethigh=false`

chance=66

base=0.00000100

nextbet=0.00000100

multiplierlose=1.3

multiplierwin=0.7

gain=0

currentstreak=0

encours=0

minscript=1

maxscript=1987

print ('-- Script1024')

function dobet()

gain = gain + currentprofit

encours = encours + currentprofit

if (!win) then

nextbet=previousbet*multiplierlose

if encours-(previousbet*multiplierlose) < -0.00040000 then

stop()

end

else

nextbet=previousbet*multiplierwin

if chance==66 then

chance =29

else

chance = 66

end

end

if gain > 0.00000001 then

prscript = math.random(minscript*1, maxscript*1)/1

print(prscript)

[glow=red,2,300][color=green][color=green]Here I dont know how to do for open then new script with the random number the normal I writte dofile('script22.txt') but I want to open dofile('script"here then random number".txt') [/color][/color][/glow]

end

end

if nextbet < 0.00000040 then

nextbet = nextbet*2

end

end

end

Thanks in advance if someone can help me