Gah - a solution with more questions. – EntropicLqd
Difference between revisions of "Unreal Wiki:Scratchpad"
From Unreal Wiki, The Unreal Engine Documentation Site
(new scratchpad) |
Acidsphinx (Talk | contribs) |
||
Line 6: | Line 6: | ||
<uscript> | <uscript> | ||
− | + | function string GetMessage() | |
+ | { | ||
+ | local int i=Rand(); | ||
+ | if (i<0.2) return "11"; | ||
+ | if (i<0.4) return "22"; | ||
+ | if (i<0.6) return "33"; | ||
+ | if (i<0.8) return "44"; | ||
+ | return "55"; | ||
+ | } | ||
</uscript> | </uscript> |
Revision as of 18:32, 14 April 2008
This page is for pasting code you want to show someone as an example or to get assistance with. This allows you to easily collaborate with someone to solve a problem, and allows easy comparisons of the edits.
You are free to remove any existing code from below, and paste your code between the <uscript> </uscript> tags. If the page hasn't been edited in 24 hours, you can assume it isn't needed anymore and can be removed. A full edit history will be available, so don't worry about losing anything.
function string GetMessage() { local int i=Rand(); if (i<0.2) return "11"; if (i<0.4) return "22"; if (i<0.6) return "33"; if (i<0.8) return "44"; return "55"; }