World of Spectrum
  • Categories
  • Discussions
  • FAQ
  • Sign In
Home › Search
Title Search
@title beer Word 'beer' in title
User Search
  • @user admin Only posts by Admin
Text Search
  • @body beer Word 'beer' in the text
Phrase Search
"Hello World" Exact phrase match
Exclude Terms
  • car -red Search cars that are not red
"Or" Searches
  • honda | bmw 'honda' or 'bmw' results
Multi-Field
@(title,body) hello Both contain 'hello'
WildCard
  • hond* civ* Match all with an astrix
Combination
  • @title bmw @user admin
See more supported syntax examples
Search Again :: Adv Search 1000 results in 0.015s
<1…9101112131415…34>
  • 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 ...
    Dr BEEP Dr BEEP March 2012 Sinclair Basic
  • 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
    Patrik Rak Patrik Rak July 2012 Development
  • 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 ...
    Morkin Morkin July 2012 Development
  • 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 ...
    daveysludge daveysludge July 2012 Development
  • 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 ...
    Ant Ant July 2012 Games
  • 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 ...
    spider spider July 2012 Games
  • 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 ...
    LCD LCD July 2012 New game ideas
  • 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 ...
    guesser guesser September 2012 Development
  • 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.
    BloodBaz BloodBaz September 2012 Development
  • 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 ...
    Ralf Ralf September 2012 Development
  • 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 ...
    Hikaru Hikaru September 2012 Development
  • 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 > ...
    Einar Saukas Einar Saukas September 2012 Development
  • 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 ...
    Einar Saukas Einar Saukas November 2012 Sinclair Miscellaneous
  • 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 ...
    Ivanzx Ivanzx November 2012 Infoseek database
  • 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 ...
    jonathan jonathan December 2012 Brand new software
  • 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 ...
    BiNMaN BiNMaN December 2012 Brand new software
  • 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 ...
    BloodBaz BloodBaz February 2013 Sinclair Basic
  • 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 ...
    guesser guesser March 2013 Development
  • 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 ...
    Winston Winston April 2013 Hardware
  • "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 ...
    introspec introspec May 2013 Development
  • 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 ...
    leespoons leespoons May 2013 Games
  • 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 ...
    Ralf Ralf June 2013 Sinclair Miscellaneous
  • 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 ...
    Gedlion Gedlion July 2013 Sinclair Basic
  • 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 ...
    Einar Saukas Einar Saukas July 2013 Sinclair Basic
  • 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.
    Gedlion Gedlion July 2013 Sinclair Basic
  • 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 ...
    Einar Saukas Einar Saukas October 2013 Sinclair Basic
  • 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 ...
    Winston Winston January 2014 Hardware
  • 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.
    Battle Bunny Battle Bunny January 2014 Sinclair Basic
  • 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 ...
    Wookiee Wookiee January 2014 Sinclair Basic
  • 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].
    Arjun Arjun February 2014 Development
<1…9101112131415…34>

Latest Posts

  • European Software Titles with an English version
    Antiriad2097 on 6:40AM
  • i am currently listening to........
    Paradigm Shifter on 12:26AM
  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on April 16
  • Celebrity deaths...
    mel the bell on April 16
  • Cooperative Games.
    Paradigm Shifter on April 16
  • LONELY TZX files : software TZX'd on the online sites with NO ASSOCIATED DOCUMENTATION
    harriusherbartio on April 16
  • How we became brainwashed by social media
    Antiriad2097 on April 16
  • How Do You Categorize Your Speccy Software and Games?
    Antiriad2097 on April 16
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 16
  • I am currently watching.....
    zx1 on April 15

HitBox

Word Docs Hits
random 6.6K 8.2K
number 18.5K 25.1K
generator 1.3K 1.5K

Related Threads

  • Xor-shift random number generator for Z80[QUOTE=Patrik Rak;320244]Come on, people, [URL="http://www.jstatsoft.org/v08/i14/paper"]xor-shift generators[/URL] devised by Marsaglia, that's the w…
  • CMWC random number generator for Z80Seeing the interest regarding the [URL="http://www.worldofspectrum.org/forums/showthread.php?t=23070"]Xor-Shift random number generator for Z80[/URL]…
  • 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 …
  • random number generator without using rnd in basicwhat is the simplest way to generate random numbers in basic (0-255), without using the rnd statement? <br /> <br /> i also want it to always gener…
  • I need ASM for random numberI need to generate a random pair of coardinates in asm so that x=random no between 0 and 31, y=random no between 0 and 23.<br /> <br /> Any ideas on …
  • How do I get a random numberHi,<br /> <br /> I need a simple routine to get a random number from 1 to 4. I don't need nothing very complex or that much random, it just have to p…
  • issue number of ZX Spectrum 48K by means of serial numberIt is possible to identify the board issue of ZX Spectrum 48K/+ by means of the serial number?<br /> If yes, how?<br /> <br /> <br /> [ This Message…
  • Help needed - UK lottery number generator in c++I'm trying to write a c++ program to generate 9 lines of 6 numbers for the uk national lottery.<br /> <br /> Anybody got any idea where I'm going wro…
  • Random number from a rangeHow can I generate in assembly a random number from a range, let's say 0-21 or 0-57?<br /> <br /> There are generators which make it 0-255.<br /> <br…
  • So where is the random number in the Speccy ?So I am messing around with ZX Spectrum Assembler and I want a random number. I looked up previous posts and one of the links said that random number…

Related Searches

  • random
  • number of spectrums manufactured
  • number of spectrums made
  • serial number
  • random assembly
  • random number code
  • input number
  • validate input is a number
  • not a number
  • validate input is number
  • random generator
  • random number basic
  • z80 random generator
  • random number 32768
  • random number 32768 repeat
  • random number
  • random number generation
  • generate random number interface
  • machine code random number
  • random number gen

Copyright © 2024 World of Spectrum