mirror of
https://github.com/liftedpixel/lslscripts.git
synced 2026-08-14 00:58:07 +00:00
Create 5ish random numbers.lsl
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
integer channel = PUBLIC_CHANNEL;
|
||||
string message;
|
||||
|
||||
integer randomInteger()
|
||||
{
|
||||
float randomFloat = llFrand(1.0);
|
||||
return llCeil(randomFloat * 100000);
|
||||
}
|
||||
|
||||
default
|
||||
{
|
||||
touch_start(integer x)
|
||||
{
|
||||
message = (string)randomInteger();
|
||||
|
||||
//llSay( channel , message );
|
||||
llSetObjectDesc( message );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user