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.016s
<1234567…34>
  • How do I get a random numberHi, 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 produce diffe…

    ... simple routine to get a random number from 1 to 4. I ... very complex or that much random, it just have to produce ...
    AE.Vasconcelos AE.Vasconcelos May 2005 Development
  • 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]…

    ... .php?t=23070"]Xor-Shift random number generator for Z80[/URL], I ...
    Patrik Rak Patrik Rak June 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…

    How 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 can make it 0-127,0-63,0-31 and so on. But what if my range isn't that "equal"?
    Ralf Ralf September 2012 Development
  • 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 …

    I'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 different sequence, but same seed = same sequence.

    Any pointers?
    na_th_an na_th_an February 2014 Development
  • 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…

    ... Assembler and I want a random number. I looked up previous posts ... of the links said that random numbers are in the ROM ... /> LD HL, 14000 but the number doesn't seem to change ...
    ivanb303 ivanb303 November 2016 Assembler
  • Getting an even random numberWhat would be the best, simplest way to do this ? I was thinking of say: A = RND*100 Then a conditional along the lines of: IF A / 2 <> I…

    ... fraction (its a complete whole number) then it must be an ... even number not an odd number" , if that makes ... not matter I require a random number between 0 and 63 (or ... must always be an even number.
    spider spider November 2018 Sinclair Basic
  • I think maybe I'll try my hand at making a game like Boggle next.Or maybe a sliding puzzle sort of thing? Although its a royal pain working out all those symbolic characters, its kind of rewarding when it works af…

    ... .

    Use the same random number generation only with 26 choices and ... then translate the number to a letter and use ... puzzle - or just plop the random results into a grid, say ...
    mik3d3nch mik3d3nch July 2017 BASIC
  • DCP Interpacks - New Old Stock Still Available (Limited)!We rarely see New Old Stock of interfaces for ZX Spectrum appear - Never mind Still being on sale from the 1980's! https://dl.dropboxusercontent.c…

    ... -a-sketch style input, explore Random Number Generation, control a model railway setup ... VIA beeper on 48k), a random number generator using ball bearing micro ...
    matalog matalog September 2019 Hardware
  • The story behind EliteI just came across this superb write-up on Ian Bell and David Braben of Elite fame. Very interesting history I must say! "http://www.guardian.co.uk/…

    ... but brilliant solution to pseudo-random number generation of galaxies! It's simplicty ...
    Arjun Arjun October 2003 Games
  • 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. Any ideas on how to code …

    ... ), HL ; Initialize the seed for random number generation
    LD BC, 10


    ; GET A RANDOM NUMBER (Taken from Z88DK)
    ; Range ...
    horace horace September 2004 Development
  • Pseudo random numbersHi everybody, I 'd like to convert a little program i wrote in VisualBasic6.0 to C or C++ to make it run faster and for training as i'm a very very n…

    ... indeed any computer*) Random numbers are never truly random - they use ... set the seed used in random number generation (I think). Hence we ... way to initialise a random number generator is to base ... in theory create "true" random number sequences - it ain't ...
    icabod icabod April 2006 Sinclair Miscellaneous
  • The Non Randomness of Sam BasicHows about this for weird. Hardly ever bothered with such simple stuff before but this is what I just did on the Sam ( as in a real one now I've got …

    Pseudo random number generation can be handy when using test data. If you seed the random number generator with the same number you get the same sequence.
    MrCheese MrCheese June 2007 Sinclair Basic
  • New oneliners for 2008[INDENT][INDENT][INDENT]Here's my attempt at a first-person-perspective 3d game in one line of BASIC. It's called 'wormhole', and you've got to get t…

    ... $[/b]. Are the same. The random number generation is exactly the same. What ...
    Digital Prawn Digital Prawn February 2008 Development
  • problem using FRAMES to generate 'random' numbersI realise the pros use bytes from ROM to get their random numbers, presumably because they want to use FRAMES to synchronise the printing and avoid s…

    ... that is increased after each number is generated. Perhaps you ... be to use a pseudo-random number generator which should give ... better than the ROM for random number generation.

    Here's ... only looking for a small number of random bits.
    [url] ...
    Alcoholics Anonymous Alcoholics Anonymous March 2008 Development
  • A scrolling starfield - help needed!I have been messing on my speccy again recently and tried to do a scrolling (parallax - maybe) starfield. I know how to scroll using machine code but…

    ... />
    To create random stars you need pseudo-random number generation routine. There is ... many ways how to generate random number, from ...
    Shiru Shiru December 2008 Development
  • Random numbers...Hi Folks, I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then proceed to gene…

    ... ]Also switched back to standard random number generation i.e. a RANDOMIZE near ...
    Paddy Coleman Paddy Coleman May 2011 Sinclair Basic
  • Auto generated spritesLooking around for some graphics I came across [url]http://blog.disktree.net/?p=19[/url] , one of several such pages. Need the odd 8x8 UDG or two (…

    ... thought of automated UDG generation did occur to me ... some interesting example code for random number generation that might be worth ... exploring on the Xor-shift random number thread (check out page ... to try inserting this new random generator into my example... ...
    kgmcneil kgmcneil December 2011 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…

    [QUOTE=HonoredShadow;664319]Procedural generation Technology explained by Braben which ... most of this video explaining random number generation, and that using the same ...
    Einar Saukas Einar Saukas November 2012 Sinclair Miscellaneous
  • 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 cases ...
    Einar Saukas Einar Saukas October 2013 Sinclair Basic
  • Cubic RevealI just though I'd develop this a little further. Written a while ago on a whim! [img]https://dl.dropbox.com/s/p44y5dda49ucmop/square_reveal_1_1.gi…

    ... each time with some simple random number generation to select the plasma pattern ...
    Arkannoyed Arkannoyed November 2017 Development
  • 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? i also want it to always generate the same…

    ... Robin. I did look up random number generation in the Sinclair Basic (ZX ...
    mik3d3nch mik3d3nch June 2019 Development
  • random numbersCan you write a piece of code that gets you a truly random number from the Spectrum, or is it only capable of generating a pseudo-random number (ie. …

    ... that gets you a truly random number from the Spectrum, or is ... capable of generating a pseudo-random number (ie. one from a run ...
    Spector Spector April 2001 Sinclair Miscellaneous
  • 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. Any ideas on how to code …

    I 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.

    Any ideas on how to code the above

    Cheers
    robpearmain robpearmain September 2004 Development
  • 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. Anybody got any idea where I'm going wrong? I'm com…

    I'm trying to write a c++ program to generate 9 lines of 6 numbers for the uk national lottery.

    Anybody got any idea where I'm going wrong?

    I'm compiling this program in dev c++, but it doesn't seem to want to come out of the line ...
    BigBadMick BigBadMick April 2007 Chit chat
  • Random Numbers, USR Return Values & Timing BASICI've been trying out Jon Ritman's random number routine, published in Your Sinclair Aug'87. Apart from a timing comparison I also did a frequency ana…

    ... trying out Jon Ritman's random number routine, published in Your Sinclair ... /> "This is the 32-bit random number generator routine I used in ... HL holding a 16-bit random number. However,
    if you ... version. So for a random number function 3*speed of RND ...
    Battle Bunny Battle Bunny January 2017 Sinclair Basic
  • 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? i also want it to always generate the same…

    what is the simplest way to generate random numbers in basic (0-255), without using the rnd statement?

    i also want it to always generate the same numbers over and over again.
    digital digital June 2019 Development
  • this code wont give me a random starfieldim using a peice of code that ive copied from a book, ignore most of it as it is redundant. for some reason i get a strange random starfield instead …

    ... interested in-----------
    call random ;v v
    and ... ret
    ; Simple pseudo-random number generator.
    ; Steps a pointer ... ld a,(hl) ; Get "random" number from location.
    inc hl ... in''. also the random number generator
    digital digital July 2020 Assembler
  • Chase HQ Pseudo 3d road algorithm ?Hello, I'm new to that forum and to the spectrum. I'm developping games for Colecovision (may be you hear about : Ghost'n Zombie and Smurf challe…

    ... .

    The actual road generation is quite simple. The road ... them is determined by a random number from -2 to +2 in ... sharp the turn is. That number is used to determine: 1 ... when it moves (essentially that number times the speed of the ...
    Paolo Ferraris Paolo Ferraris February 2011 Development
  • Chase HQ Pseudo 3d road algorithm ?Hello, I'm new to that forum and to the spectrum. I'm developping games for Colecovision (may be you hear about : Ghost'n Zombie and Smurf challe…

    ... br />
    The actual road generation is quite simple. The road ... them is determined by a random number from -2 to +2 ... when it moves (essentially that number times the speed of the ... draw the curve according to random number you generated.

    Thanks ...
    youki youki February 2011 Development
  • converting mp3 to zx importfile.is it possible?Hi peeps I am just looking through old threads and browsing through music tools on the zx in particular converting or creating ,what i am looking for…

    ... to be a stream of random pips/pulses... I think ... randomly activate the noise at random intervals, perhaps with some ... think Id find the 'random-interval-generation" code more complicated than ... brings us on to problem number two, engine intergration... The ...
    kgmcneil kgmcneil March 2012 Development
<1234567…34>

Latest Posts

  • I am currently watching.....
    Paradigm Shifter on 12:49AM
  • New video about S-video modification on Issue two 48K Spectrum.
    Renegade on April 21
  • Fixed Speccy Software. And which games remained unfixed?
    John Elliott on April 21
  • Happy 40th Birthday to the Amstrad CPC464!
    rich_chandler on April 21
  • Another Birthday! The Game Boy Is 35!
    mel the bell on April 21
  • European Software Titles with an English version
    harriusherbartio on April 21
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 21
  • 1992 Spectrum Software
    harriusherbartio on April 21
  • +3 Disk drive motor
    AndyC on April 21
  • Celebrity deaths...
    mel the bell on April 20

HitBox

Word Docs Hits
random 6.6K 8.2K
number 18.5K 25.1K
generation 2.7K 3.1K

Related Threads

  • 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…
  • 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]…
  • 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…
  • 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 …
  • 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…
  • Getting an even random numberWhat would be the best, simplest way to do this ?<br /> <br /> I was thinking of say:<br /> <br /> A = RND*100<br /> <br /> Then a conditional …
  • 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…

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
  • if input is not a number
  • serial number database
  • random number basic
  • random number 32768
  • random number 32768 repeat
  • random number
  • random number generator
  • generate random number interface
  • machine code random number
  • random number gen

Copyright © 2024 World of Spectrum