Page 1 of 1
DSA: random number?
Posted: Sun Feb 25, 2007 7:41 pm
by ADDF_Toxic
Is there any way to randomly choose a number within a range using DSA in CSBWin? Thanks.
Posted: Sun Feb 25, 2007 7:55 pm
by beowuuf
&RAND
This generates a number between 0 and the number one less than on the stack
L50 &RAND generates a number between 0 and 49, etc
Posted: Sun Feb 25, 2007 8:03 pm
by ADDF_Toxic
That sounds simple enough! It sounds like you can't set a lower boundary (too bad), but I think I have a way around that. I'll just need to subtract the upper boundary by the lower boundary, then add it again after the random number has been found
Thanks for the help.
Posted: Sun Feb 25, 2007 8:09 pm
by beowuuf
Pretty much
L5 &RAND gives you 0 - 4
L5 &+ gives you 5 - 9 for example
Posted: Sun Feb 25, 2007 8:11 pm
by ADDF_Toxic
Do you mean
? Wow, that's easier than I was about to make it!
Posted: Sun Feb 25, 2007 8:14 pm
by beowuuf
No, you need to put things on the stacks first
L5 &RAND L5 &+
Posted: Sun Feb 25, 2007 8:41 pm
by ADDF_Toxic
Ah, so like I was saying
Posted: Sun Feb 25, 2007 8:50 pm
by beowuuf
Probably!
Posted: Sun Feb 25, 2007 10:39 pm
by Lunever
Stay true to CSB - employ gigglers for random generators.
Posted: Sun Feb 25, 2007 10:42 pm
by beowuuf
Lol, some numbers can't reply on gigglers - like which direction a trolin will strike in combat with deth knights
Posted: Sun Feb 25, 2007 10:52 pm
by Lunever
Maybe you just need enough giggler-controlled invisible soundless spinners
Posted: Sun Feb 25, 2007 11:12 pm
by beowuuf
Maybe that's how DSA's really work - they generate 32 hidden levels of giggler mechanics
Posted: Mon Feb 26, 2007 8:40 pm
by zoom
poor giggler sods!
Posted: Mon Feb 26, 2007 8:44 pm
by beowuuf
Serves them right for STEALING MY VORPAL BLADE *fireball fireball poison dart*
Posted: Mon Feb 26, 2007 8:59 pm
by zoom
You should not have (waved ) the vorpal blade in front of the gigglers' faces in the first place!
Next time , put it into your backpack.
THey are cleptomaniacs that have a fixation on stuff in hands..
BUT, if you think about it : fireballing them is fun! even more so, if they charge you.
Posted: Mon Feb 26, 2007 9:04 pm
by Lunever
Maybe if the gigglers had a guild you could pay them gold coins in order to keep your vorpal blade.
Posted: Mon Feb 26, 2007 9:12 pm
by beowuuf
Maybe, if I had any left! They stole them! *fireball fireball oh um ew*