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.014s
<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
  • 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
  • Zaf-forth to Z80 compiler Build 5This forth like complier is changing almost every day with new items been added. Here is a new Zaf-forth word add it the sptword.fth file - which is…

    ... to the screen"
    ;"random sizes abd random x and y"

    ."Random Circle Demo"
    ;"print message ... /> 50 rnd
    ;" get a random number between 0 and 50"
    =rrandom
    ;"store number on stack used for radius ...
    Steve(spt) Steve(spt) October 2004 Development
  • Programming MC : first stepsIsn't nice to collect all kinds of short routines to help making the first steps into MC for everyone who never touched MC? What I mean is mostly th…

    ... a simple Random number generator for every number between 0 ...
    call random ; fetch RND number
    add ... BASIC

    random push hl ; save registers< ... a,(hl) ; fetch RND number
    marge sub c ...
    Dr BEEP Dr BEEP August 2005 Development
  • NEW GAME COMING SOONMr Cauldwell has been busy again. How about this for a scenario....... Loco Bingo ========== The Plot -------- In the very near future a hith…

    ... than ninety, then the smallest number will
    be < ... identical the new number will be a third random number.
    ... Truck one Truck two New number
    8 33 ... 33 31
    64 64 random

    I ...
    chaosmongers chaosmongers September 2005 Games
  • 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 …

    ... :

    Hehe bet modern random number generators are just as non ...
    DonkeyPong DonkeyPong June 2007 Sinclair Basic
  • 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…

    [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 way to go.[/QUOTE]
    [QUOTE=Patrik Rak;320294]Given the math behind it, you can derive the same thing ...
    Patrik Rak Patrik Rak December 2008 Development
  • Couple of questions...Howdy, 1. Is there a decent way to get a random number in BASIC/MC? I've been using LET a=INT(RND*2)+1 but the numbers tend to stay at 1 or 2 most …

    ... decent way to get a random number in BASIC/MC? I've ...
    polomint polomint March 2009 Development
  • Web Server QuestionI did an exercise at a local school where they had to download a executable Java file from a standard web server. 27 pupils were instructed to acces…

    ... I used a random number generator to pick a number between 1 to ...
    Scottie_uk Scottie_uk July 2009 Chit chat
  • PS3 online issuesI'm having a few problems with my PS3 (again). First of all, I had real trouble getting it to connect wirelessly to my Orange Live Box. After a few w…

    ... was kicked off (with a random number error message) after about 15 ... always getting a secondary DNS number and this stays at 0 ...
    Bermondsey Bob Bermondsey Bob September 2009 Chit chat
  • Randomize usrHi, I've often wondered why/how they came up with RANDOMIZE USR <memory address> to invoke machine code couldn't they have used a better keyword (e…

    ... know about RANDOMIZE is regarding random number sequence position
    saiwong saiwong December 2009 Sinclair Basic
  • Pls suggest me a website where I can win moneyDoes anybody have an experience on the internet where it is possible to win some money ? I mean something like board or casino games like roulette, b…

    ... I can beat the unreliable random number generator in Windows, but I ...
    bohusk bohusk January 2011 Chit chat
  • Canny use of the 'r' register?Seeing Sokurah's code in the [URL="http://www.worldofspectrum.org/forums/showthread.php?p=583188#post583188"]crunch sound thread[/URL] has made me th…

    ... ; easy way to get a 'random' number eg:

    ld a ...
    R-Tape R-Tape November 2011 Development
  • RND CommandsExactly how random are they? Reason I ask is I'm using 4 of them to generate a random number, the value of which then assigns movement commands to f…

    Exactly how random are they?

    Reason ... of them to generate a random number, the value of which then ...
    Wookiee Wookiee January 2012 Sinclair Basic
  • Interview with VERONIKA MEGLER ("The Hobbit" programmer)This interview with Veronika Megler (The Hobbit) has been published by elmundodelspectrum.com in Spanish, I copy it here for you all in its original …

    ... ; and the actions had random components too, so for ... I realized that the random number generator was producing the same ... actually pseudo-random. So Phil wrote a random number generator that ... was truly random, not just ...
    jmvbok jmvbok March 2012 Games
  • Model Railway Timetable Version 1.4.12.0313...Hi Folks, Since November 2010 I have been working on my [B]Model Railway Timetable [/B]software. Thanks to the considerable help and patience of yo…

    ... routine (Battle Bunny)
    * New random number generator (Patrik)

    All ... REMs removed and the line number renumbered to 1,1. The ...
    Paddy Coleman Paddy Coleman March 2012 Sinclair Basic
  • Basic BASIC help needed RNDHi all, I have recently re-discovered an old program I wrote in the early 90s which would do generate random lottery numbers. I know little now, an…

    ... 90s which would do generate random lottery numbers.

    ... simply need to display a random number between 1 and 49.
    random number in this range but weirdly ... 10 and occasionally gives a number OVER 49!

    ...
    landorb landorb March 2012 Sinclair Basic
  • Intermittent sound cutting outHello, I'm resurrecting an old rubber key spectrum. Originally it had no sound at all, diode D9 was blown, I replaced it with one from my other dead …

    ... sound effects stop for some random number of seconds, and then start ...
    beelzebubbles beelzebubbles May 2012 Hardware
  • They're here ! BASIC horror themed games[IMG]http://i1163.photobucket.com/albums/q541/Rygarman/theyre_here.jpg[/IMG] Because its my birthday tomorrow (38 years young) I am making these ga…

    ... the computer think of a random number, and could see how this ... . The computer thinks of a number. If you guess that same ... ! I found that pressing the number, then Enter, over and over ... and made everything that happens random! I think there are somewhere ...
    retromad retromad November 2012 Brand new software
  • Christmas Games Club 2012Ive been working the random button all morning and not xmas games came up. so in a suprise twist, you have the opportunity to un-wrap your game on c…

    Ive been working the random button all morning and not ... scrambled them, and added a random number. :D

    oh and ... i will do a quick random search xmas morning. :p
    mile mile December 2012 Games
<1234567…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

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
  • 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
  • random number generation
  • generate random number interface
  • machine code random number
  • random number gen

Copyright © 2024 World of Spectrum