I have a script already and it works. But it only allows you to choose only one option. You can change it to say big, or small. I want it to randomly pick it for me. I have been racking my brain to figure it out. I need to learn to code.
I have a script already and it works. But it only allows you to choose only one option. You can change it to say big, or small. I want it to randomly pick it for me. I have been racking my brain to figure it out. I need to learn to code.

Simba Code:x := Random(2);
Case x of
0 : TypeSendEx('Small',true);
1 : TypeSendEx('Big',true);
end;
Is that what you are after?
Last edited by Justin; 04-28-2012 at 03:10 PM.
Simply a GOD beast...
My Tutorials


Weird...
Simba Code:program new;
var x : integer;
begin
writeln('Start of script');
x := Random(2);
Case x of
0 : writeln('This is 0');
1 : writeln('This is 1');
end;
writeln('End of script');
end.
Progress Report:Start of script This is 1 End of script Successfully executed. Compiled successfully in 0 ms. Start of script This is 0 End of script Successfully executed.
If you want you can PM (click here) me the script and I will take a look at it.
PM sent
You don't even need to put the whole x part.
will do that same job.Simba Code:case Random(2) of
<3
Originally Posted by Eminem
Simply a GOD beast...
My Tutorials
Using x:Not using x:Code:Compiled successfully in 32 ms. Hello Successfully executed.Using if then elseCode:Compiled successfully in 31 ms. Hello Successfully executed.And to be honest, I don't really see how using unnecessary code is a good habit, but that's just my opinion.Code:Compiled successfully in 31 ms. Hello Successfully executed.
<3
Originally Posted by Eminem
Oh well, guess I'm wrong![]()
Simply a GOD beast...
My Tutorials
You may contact me with any concerns you have.
Are you a victim of harassment? Please notify me or any other staff member.
| SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |
Simply a GOD beast...
My Tutorials
Simba Code:var
TSA :TStringArray;
begin
TSA := ['High', 'Low'];
WriteLn(TSA[Random(Length(TSA))])
end.
~Home
There are currently 1 users browsing this thread. (0 members and 1 guests)