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.024s
<1…12131415161718…34>
  • im looking for a machine code star-field routineim looking for a machine code star-field routine. preferably with mnemonics.

    ... 8 bits. You pick a random number plus a fixed minimum to ... make a 16-bit number for the speed of movement ...
    joefish joefish June 2018 Development
  • im looking for a fill routine written in basici know this would be slow but i want to tinker with it to produce something else.

    ... pixel row, then generating a random number, and if it's above ... right across (or uses the random scattering algorithm I described).
    joefish joefish July 2018 Development
  • Saving Basic games from code...I don't know if I am posting this to the right section, but I need to know how I can type out a Basic program from code and save and run it through L…

    ... . When you say "code" do you mean code as in assembly language ... 0 (or a starting line number) , code is similar with a SAVE ... "name" CODE start address , length

    spider spider August 2018 Sinclair Basic
  • 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…

    Get a random number which is an integer, then multiply by two.
    arttu arttu November 2018 Sinclair Basic
  • 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…

    [quote="arttu;947655"]Get a random number which is an integer, then ... (RND*100) [i] ... get a random number make sure its a whole ... number too[/i]
    20 PRINT ... PRINT A' [i] ... print new number (on same line as original ...
    spider spider November 2018 Sinclair Basic
  • 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…

    ... use PEEK 23672 as a random number between 0 and 255 because ... , it can work as a random number when it is included in ... you´ll obtain an even random number between 0 and 510. Quick ...
    IvanBasic IvanBasic November 2018 Sinclair Basic
  • 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…

    That might work out a fraction better actually, thanks. I'm really after a random number between 0 and 63. But it must occasionally be 0 rather than "1 to 63" :)
    spider spider November 2018 Sinclair Basic
  • Non-repetitive RNDHi guys) Perhaps, some of you already encountered a situation, when one needed a set of [b]unique [/b](pseudo-)random values, say, from zero to 25…

    ... that means that following one random number, any number is just as likely ... to be the next random number, including the exact same ... a “1”, the next random number is just as likely to ... if the random number is the same as a previous random number.
    ...
    1024MAK 1024MAK November 2018 Sinclair Basic
  • Non-repetitive RNDHi guys) Perhaps, some of you already encountered a situation, when one needed a set of [b]unique [/b](pseudo-)random values, say, from zero to 25…

    ... cannot generate truly random numbers. For a truly random number generator, you ... the seed for a pseudo random number generator ;-)

    ...
    To get truly random numbers, the extra hardware needed ... way to convert the random analogue voltages to a ...
    1024MAK 1024MAK December 2018 Sinclair Basic
  • Non-repetitive RNDHi guys) Perhaps, some of you already encountered a situation, when one needed a set of [b]unique [/b](pseudo-)random values, say, from zero to 25…

    A linear congruential pseudo-random number generator will do that.
    < ... a row, in a seemingly random order.
    matalog matalog December 2018 Sinclair Basic
  • Random GRASSHello guys, Many yrs ago I used predefined UDG as grass to fill some area, adding to it via PLOT or POKE. It seems that PRINTing a string$ combin…

    ... this:-
    Generate a random number,( whole number between the max and min ... or greater than the previous random result (so theres a one ...
    mik3d3nch mik3d3nch February 2019 Sinclair Basic
  • Random GRASSHello guys, Many yrs ago I used predefined UDG as grass to fill some area, adding to it via PLOT or POKE. It seems that PRINTing a string$ combin…

    ... with the arrays using a random number of the array index.
    print at y,x;g$[random];
    using a loop to ...
    Luny Luny February 2019 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…

    ... ! If you want to generate random numbers then the next time ... will not get the same number because of their being randomly ... ! Imagine a dice as a random number generator from 1 to 6 ...
    mik3d3nch mik3d3nch June 2019 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 ...
    mik3d3nch mik3d3nch June 2019 Development
  • Looking for Chaos remake "Chaos Groove"The best Chaos remake is Chaos Groove but the homepage for it has become defunct. The version I had on my old hd before it became corrupted included …

    [quote="SteveSmith;960810"] It adds a random number from 1-10 to att & def, and if att > def, the attacker wins.
    [/quote]

    So 1 vs 8 and then 1 vs 9 has a 0.03% chance of happening, I think. Good work.
    morph morph January 2020 Games
  • Looking for Chaos remake "Chaos Groove"The best Chaos remake is Chaos Groove but the homepage for it has become defunct. The version I had on my old hd before it became corrupted included …

    ... ="SteveSmith;960810"] It adds a random number from 1-10 to att ...
    Lebowsk1 Lebowsk1 January 2020 Games
  • Son et Lumiere - a lightsynth from 1985.I wrote this back in 1985, inspired by Jeff Minter's Psychedelia; I think I was the only person who actually bought the Spectrum version! I wanted…

    ... that in turn drove a random number generator which created patterns of ...
    mik3d3nch mik3d3nch April 2020 Software
  • Carnival: is it broken and can it be fixed?[url=https://spectrumcomputing.co.uk/entry/823/ZX-Spectrum/Carnival]Carnival[/url] by Eclipse software is ostensibly one of the Speccy's most arcade-…

    ... sec the game checks the random number and the chance for taking ...
    Pgyuri Pgyuri October 2020 Games
  • Scientists puzzled by "Dark Matter" maphttps://www.bbc.co.uk/news/science-environment-57244708 I have to admit this is a bit over my head - however it is interesting and it has the scie…

    ... they have the same number of elements and the ... numbers in it than the number of natural numbers.
    number of ways of arranging ... difficult to prove a number is transcendental (despite the ... if you pick a random number in an interval (e ...
    Paradigm Shifter Paradigm Shifter June 2021 Chit chat
  • Robospec (new project, hopefully useful as a tutorial as well)Starting a new project after my graphics investigations. * It's gonna be a Robotron clone since that's not too ambitious (although I'd like to hav…

    clear screen and random functions

    [code]
    ; A -> attrib to ... +1),hl
    ret
    [/code]
    Paradigm Shifter Paradigm Shifter July 2022 Development
  • Tutorial - learn machine code in 30mins[B][I]Message from the moderators[/I] - bigjon has requested that readers' attention be drawn to a better version of this tutorial, one which is easi…

    ... here?

    [CODE]
    ZX SPECTRUM MACHINE CODE GAME 30 MINUTE ... car
    ;scroll road
    ;random road left or right
    number and use the instruction cp ... down our blindingly fast machine code.
    Insert the following ...
    bigjon bigjon November 2009 Development
  • Random-Access to Microdrive FileI am working on a BASIC program to backup a microdrive text-file to standard tape array-file. To backup a text-file from one microdrive to a secon…

    ... b] is the ability to "random read access" an OPEN# ... as the OPEN#ed stream number to determine some important address ... .



    [code]
    1 DEF FN p ... /> 1550 RETURN

    [/code]


    Regards.
    mattsteel mattsteel May 2018 Sinclair Basic
  • Loading with CODEHi all! I last played speccy games back in '91. that's when it died IMHO. It's good to see people are keeping the dream alive with emulators and util…

    ... with :
    LOAD "" CODE
    where was a number. There are no ...
    ember ember March 2002 Games
  • RND not random?I recently wrote a simple Alien style game where the bad guys shoot you at random, it works fine, but after a while the Variable that is supposed to …

    ... bad guys shoot you at random, it works fine, but after ... supposed to be random gets stuck on a number. I've tried ...
    Pirate Pirate June 2003 Sinclair Basic
  • How to program Machine Code on a PC, and then run it on a speccy?Well, I've been looking into MC a bit more deeply recently - I reckon I could get my head round MC now. Back when I was a teenager, I couldn't see th…

    ... trees - MC just seemed like random numbers on the screen! Now ... a bit cumbersome to actually code it on the speccy - what ...
    jonrach73 jonrach73 March 2004 Development
  • Machine Code Sprites Example Code Using Char Based SystemBelow is my WIP code to do smooth screen wrapping sprites using char positions and offsets, as opposed to writing direct to a line (0-191) and shifti…

    Below is my WIP code to do smooth screen ... be most welcome

    [code]
    ; ********************************************

    ; Char ... ; And loop for the total number of sprites

    ... />

    END
    [/code]
    robpearmain robpearmain August 2004 Development
  • IM2 Machine Code Sprites Example Code Using Char Based SystemFurther to my earlier post, here are sprites running using char method with IM2 driving it Note, for 48k spectrum using TASM [code] ; ***********…

    ... spectrum using TASM

    [code]
    ; ********************************************

    ; Char ... /> PUSH IX

    ; ADD CODE to animate, i.e change ... ; And loop for the total number of sprites

    ...
    robpearmain robpearmain August 2004 Development
  • Fast division in machine codeHi Does anyone know what is the fastest way to divide a 16 bit number by 24 in machine code. Derek [ This Message was edited by: dmsmith on 2004-0…

    Hi

    Does anyone know what is the fastest way to divide a 16 bit number by 24 in machine code.

    Derek

    [ This Message was edited by: dmsmith on 2004-09-24 20:04 ]
    dmsmith dmsmith September 2004 Development
  • How do I find out my mobile phone number?I've found an old Nokia 3310 with Orange simcard I forgot I had, and I need it for someone for tomorrow just to stay in touch with them, but I won't …

    ... number that way.

    I know there is a code ... you can tap in and send which displays the phone number ... on the screen, but all I can find is the code ... *#06# which is for the IMEI number. ... to display the phone number, but my searches ...
    MattLamb MattLamb July 2005 Chit chat
<1…12131415161718…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
code 41.6K 91.2K

Related Threads

  • Machine Code Sprites Example Code Using Char Based SystemBelow is my WIP code to do smooth screen wrapping sprites using char positions and offsets, as opposed to writing direct to a line (0-191) and shifti…
  • IM2 Machine Code Sprites Example Code Using Char Based SystemFurther to my earlier post, here are sprites running using char method with IM2 driving it<br /> <br /> Note, for 48k spectrum using TASM<br /> <br /…
  • 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…
  • Saving BASIC code as CODE... can't start programHi guys!<br /> <br /> I'm trying to create an adventure game for the Speccy in BASIC, called The Legend Of The Red Dragon.<br /> <br /> I'm using the…
  • 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…
  • Converting Basic code into machine codeIm just interested to know if I can converter a game I've written in basic into Machine code, Is their a program that can do this??

Related Searches

  • lowest memory for code
  • lowest memory position for machine code
  • lowest memory position machine code
  • lowest memory machine code
  • lowest memory code
  • random
  • number of spectrums manufactured
  • number of spectrums made
  • serial number
  • code 16384
  • random number basic
  • random number 32768
  • random number 32768 repeat
  • random number
  • random number generator
  • random number generation
  • generate random number interface
  • machine code random number
  • random number gen
  • print number machine code

Copyright © 2024 World of Spectrum