Create your own Interactive Fiction

ADRIFT - Interactive Fiction  
Home   |   News ADRIFT News RSS   |   Screenshots   |   Download   |   Games ADRIFT Reviews RSS   |   Forum   |   Help   |   Links
Welcome Guest Register | Login
Popular Games
The Axe of Kolt
Skybreak v. 1.4
Skybreak v 1.2
The Fortress of Fear
Lost Coastlines
Trick or Treat
Magnetic Moon
All Hallows Eve
Ectocomp 2011 Compilation
Adventures of Thumper - Wonder Wombat
 
Latest Forum Posts
Simplifying my game
Items and Conditional descriptions in Room description
D-Day
Teleporter that sends player to specific room based on a setting
Character swapping and Combi-Lib
Embedding Adrift 4 online play on itch.io
Viewer and command control
Just Another Christmas Day - ADRIFT 5 game
HAPPY BIRTHDAY Daza
How to output full array variable?
 
Latest Reviews
Wumpus Hunt
Lost Coastlines
The Lost Labyrinth of Lazaitch
October 31st (Post comp.)
The Euripides Enigma
AI
Hint System Library - Release 1
The Dead of Winter
The Odd Competition
Grandpa's Ranch - Play Online Version

Make a donation

Cursor  A no repeat RAND() function

Issue Type: Status: Priority: Date Submitted: Votes:
Enhancement Completed Medium Fri 23rd Dec 2011 9 votes Vote Up Vote Down
 
Found in version: Last Updated: Completed in version: Date Completed: Track Changes:
5.0.22 Sat 25th Jul 2015 5.0.34 Sat 25th Jul 2015 Log In
 
ElliotMFri 23rd Dec 2011 22:50
For making text effects, repeats can destroy the illusion, so I think what would help would be a pseudo random function that will return integers within its range without repeats until every number in the range has been returned an equal number of times before starting over. I don't know what we'd call it, though I do know there is a term this kind of randomness that I can't think of right now.
 
ElliotMThu 29th Dec 2011 15:42
There has been some discussion on whether or not this could be implemented by the users: viewtopic.php?f=14&t=7699&p=87556#p87556

The benefit of a function is that it could be used directly in text like Rand() can be, whereas with a fake function used by the user could only realistically be used in text outputted from a task or action. In my opinion, having it run in the background would defeat the purpose of the no repeat random sequence because the player might not be seeing the particular text in question. Might be a moot point with proper planning, but I feel this could be useful as a function, though an approximation seems achievable using tasks and arrays.
 
CampbellSat 25th Jul 2015 14:41
Added new URand (Unique Random) function, which takes the same parameters as the Rand function (i.e. a single value, or a Min and Max values), but which will return Unique values within the range until all values are exhausted.
© 2013 Campbell Wild. All rights reserved. | Contact the Webmaster