-
RND numberHow do I go about selecting from the numbers 4,9,14 and 19? (RND*4)*5-1 ????? :-?
... I would probably generate a random number between 1 and 4 where ... -
Help needed... RND in machine codeI have been battling away trying to convert a simple BASIC routine (below) to machine code, but to no avail. The routine is used to fire 2 bullets a…
I recommend checking [URL="http://www.worldofspectrum.org/forums/showthread.php?t=23070"]this thread[/URL], it shows how to generate 8 bit random number in machine code which you can easily use for what you need.
Patrik -
Help needed... RND in machine codeI have been battling away trying to convert a simple BASIC routine (below) to machine code, but to no avail. The routine is used to fire 2 bullets a…
... /> So you could grab a random number between 0 and 3 (like ... . It might not be uber-random but it suits me fine ... -
Using CP and JR Z commandI have been trying to [URL="http://www.worldofspectrum.org/forums/showthread.php?t=40011"]convert a BASIC routine to machine code[/URL], but to no av…
... 30000 should change to a random number when the value of 30001 ... -
Anti-piracy measures on Speccy games - What games have it?I was looking at the JSW card which gives you the grid location system for protecting the game against simple forms of copying, and I know that ATF h…
... variable - thereby giving an effectively random number depending on how long since ... -
Anti-piracy measures on Speccy games - What games have it?I was looking at the JSW card which gives you the grid location system for protecting the game against simple forms of copying, and I know that ATF h…
... variable - thereby giving an effectively random number depending on how long since ... -
Journey's End III was a big fan of Journey's End and invested many months of my life in playing this very hard game. I even had plans in 1987 to make a follow up. In…
Just made the random dungeons generator. Looks very good and different ... -
Random number from a rangeHow can I generate in assembly a random number from a range, let's say 0-21 or 0-57? There are generators which make it 0-255. By using bit masks I…
... operation.
If your random number R is between 0 and ... the correct offset. So your random number, let's call it C ... -
Random number from a rangeHow can I generate in assembly a random number from a range, let's say 0-21 or 0-57? There are generators which make it 0-255. By using bit masks I…
... /> [code] ;input: a = your initial random value, e.g. 0-255 ... does provide you with a random number in the specified range, the ... weighting (probability) of each number is not the same. -
Random number from a rangeHow can I generate in assembly a random number from a range, let's say 0-21 or 0-57? There are generators which make it 0-255. By using bit masks I…
... does provide you with a random number in the specified range, the ... weighting (probability) of each number is not the same.[/QUOTE ... range 0-200 and a random number 0-255
We ... -
Random number from a rangeHow can I generate in assembly a random number from a range, let's say 0-21 or 0-57? There are generators which make it 0-255. By using bit masks I…
... does provide you with a random number in the specified range, the ... weighting (probability) of each number is not the same.[/QUOTE ... -
Random number from a rangeHow can I generate in assembly a random number from a range, let's say 0-21 or 0-57? There are generators which make it 0-255. By using bit masks I…
... digit higher - and rerolls the random number if it's still too ... . As a result p(successful random in range) ends up > ... -
Multiplayer Elite is finally happeningDavid Braben just announced that he's started a kickstarter funding project to finally make a multiplayer version of Elite. How f*cking awesome is th…
... most of this video explaining random number generation, and that using the ... -
Portuguese games not in the archive, please Help! (Portuguese and Brazilians WoSsers)In this thread: [url]http://www.worldofspectrum.org/forums/showthread.php?t=823[/url] I found two WoSsers speak about the following games, which ar…
... use every week a lottery number generator from the WoS archive when ... -
Arcade Game Designer 3The latest version of the arcade game creation tool for the 128K Spectrum. AGD 3 now boasts pop-up menu and inventory facilities for arcade adventur…
... , you could try getting a random number between 0 and 8, then ... and you should have a random list of numbers 1 - 10 ... -
Arcade Game Designer 3The latest version of the arcade game creation tool for the 128K Spectrum. AGD 3 now boasts pop-up menu and inventory facilities for arcade adventur…
... , you could try getting a random number between 0 and 8, then ... and you should have a random list of numbers 1 - 10 ... -
RANDOMIZE USRI always thought that this particular basic command was not intuitive! If I understand correctly is means run the code from the memory address, is t…
... the seed for the pseudo-number generator) but it is also inert ... -
A quick newbish questionI'm reading through 'mastering machine code on your spectrum',as kindly posted by Mr bert on this forum. Correct me if I'm wrong from what i read,bu…
... value for the BASIC RND random number command). You can use any ... -
Flashing coloured blocks - diagnosisHiya, hope this is the right place for this... Was given an Issue 2 48K by a someone yesterday that hasn't been powered on in 20 years, which works …
... , you'll never see it (random number fill tests are probably the ... -
"Chronos": how fast should it really be?I was reading [URL="http://timfollin.pwp.blueyonder.co.uk/Archive.htm"]Tim Follin's webpage[/URL] the other day and came across a curious remark abou…
... ends up with a fairly random number between 0 and 9. This ... number is used to select a ... =0000951"]Tip Shop[/URL] is Number 5), most pretty funny. Once ... joystick. My favourite table is number 10 which says:
[QUOTE ... -
The Official Crap Games Competition 2013 Thread!Just to announce that the 2013 CGC is OPEN! [IMG]http://i1142.photobucket.com/albums/n608/daveyboyhughes/cgctitle2_zps77591934.jpg[/IMG] And for th…
... the POKEs of of a random number (repeated 32 times to get ... -
Machine code assistance please #1Dear all, Learning the ropes here, so please excuse these odd questions which may seem simplistic to you learned lot. This routine is placed at 33…
... result will be random because B will be random.
In ... C,100 -you will get random number because B is not set ... -
generating a pre-defined list in an un-defined sequenceI've decided to become a drunkard, to which end I've been drinking a whole bottle of beer in one day (whereas normally I'd make it last 2 or 3 days).…
... /> We then roll up a random number from one to ten. And ... cards, so we roll a number from 1 to 9, and ... cards. So we roll a number from 1 to 8, and ... on the screen in a random order; hitting each one once ... -
generating a pre-defined list in an un-defined sequenceI've decided to become a drunkard, to which end I've been drinking a whole bottle of beer in one day (whereas normally I'd make it last 2 or 3 days).…
... generate a new 16 bits random number. Let's call it [B ... . Each execution will provide a number [B]B[/B] from 0 ... -
generating a pre-defined list in an un-defined sequenceI've decided to become a drunkard, to which end I've been drinking a whole bottle of beer in one day (whereas normally I'd make it last 2 or 3 days).…
... equally likely. Mostly because a random seed with around 250 bits ... all. Perhaps excluding the hardware random number generators. -
display file addressing; screen slicingWhile working on this Compendium I'm updating or rewriting a lot of stuff. One thing I eventually came to appreciate was the simple & clever way in w…
... not a good choice for random number generation (except on very specific ... -
New CPU and Spectranet oddity.I have no reason to suspect this problem is due to a fault/poor design of the Spectranet, but understanding what it does at system initialisation may…
... is used to initialise the random number seed but this is read ... -
DIM DATA and the likeSo...I'm trying to work out arrays in BASIC a bit more and have knocked up the following quick test bed to fiddle about with before trying anything m…
... rule for selecting any random integer from a range ... value, n is the number of values and s+n ... />
For selecting a random number from a non-sequential range ... lowest value, n the number of values and g the ... ) and read the Random section for more examples. -
DIM DATA and the likeSo...I'm trying to work out arrays in BASIC a bit more and have knocked up the following quick test bed to fiddle about with before trying anything m…
... Spectrum rule for selecting any random integer from a range is ... .
For selecting a random number from a non-sequential range ... the lowest value, n the number of values and g the ... an extract) and read the Random section for more examples.[/QUOTE ... -
Deterministic random number generatorI'm looking for a random number generator in assembly which, given a seed, the generated sequence is always the same. You change the seed, you get a …
FYI: Patrik's RNG is also available [URL="http://chuntey.wordpress.com/2012/06/07/random-number-generators/"]here[/URL].