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.020s
<1234567…34>
  • 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 ... 40000

    call rnd ; BASIC driver
    ld c,a ...
    Patrik Rak Patrik Rak June 2012 Development
  • 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
  • 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 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 ... instances the required return to BASIC with a decimal fraction ... return that value to the BASIC program.

    As ... />
    Here's the BASIC timing routine which I use ...
    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
  • 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 …

    ... BASIC generates random numbers?

    :smile:

    Hehe bet modern random number ... generators are just as non random :D
    DonkeyPong DonkeyPong June 2007 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.

    ... then, when it comes to BASIC programming and I'm after ... simply need to display a random number between 1 and 49.
    random number in this range but weirdly ...
    landorb landorb March 2012 Sinclair Basic
  • 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 games were written in BASIC by myself, and for myself ... . Although I managed to program basic text adventures, I was the ... the computer think of a random number, and could see how this ... .
    Now where?s my BASIC programming guide?

    Enjoy ...
    retromad retromad November 2012 Brand new software
  • 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
  • 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…

    ... is a simple Random number generator for every number between 0-255
    ret ; Back to BASIC

    random push hl ; save registers ...
    Dr BEEP Dr BEEP August 2005 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
  • 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 been ...
    polomint polomint March 2009 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 ... odds...)

    Is this BASIC code [I]actually[/I] randomising ...
    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 …

    ... many of the games in Basic for the books that Melbourne ... characters, I realized that the random number generator was producing the same ... was actually pseudo-random. So Phil wrote a random number generator that was ...
    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…

    ... program in 64K using ZX BASIC!

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

    All ... MRT is written in ZX BASIC and uses extensive tips/tricks ... REMs removed and the line number renumbered to 1,1. The ...
    Paddy Coleman Paddy Coleman March 2012 Sinclair Basic
  • INPUT help?Hi folks. :) Brace yourselves, this is probably a very silly question, my BASIC knowledge is very... well, basic... Let's say, for example, I'm mak…

    ... silly question, my BASIC knowledge is very... well, basic...

    ... a line to generate the random number, then I have an ... check their answer against the random number I've generated? I'm ... be something like "IF a$=number THEN PRINT "Correct!"", but ...
    GreenCard GreenCard February 2014 Sinclair Basic
  • Issue 6 repair with a twist...(Starting with a slight grump - the forum ate my first attempt at this so this'll probably end up being a bit terse :)) I got a Issue 6 48K machine …

    ... entered and ran a simple BASIC program to fill the screen ... issue is the random fill test, where a random number generator is loaded ... against the output of the random number generator. In a healthy ... a soak test where the random number generator is seeded with ...
    balford balford September 2014 Hardware
  • 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 ... character around it - not from Basic, there won't be enough ...
    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 ... most Arduino sensors - all with BASIC programs and one of these ... VIA beeper on 48k), a random number generator using ball bearing micro ...
    matalog matalog September 2019 Hardware
  • 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
  • Computer Haiku (converted from C64)[url=https://archive.org/details/Computer_Haiku_1983_CES]Here's the original C64/PET program - "Computer Haiku" by Commodore Educational Software, 19…

    ... original program was written in BASIC, I thought I'd examine ... to the original programmer - the random number generator was set by the ...
    The Mighty Dopethrone The Mighty Dopethrone September 2020 Sinclair Basic
  • did anybody program games for their spectrum?did anybody make games for their spectrum and have you still got them in tap/z80 format. i once attempted to make a side scrolling game but it didn…

    ... text adventure game written in BASIC. First attempt. Helped by ... a conversion of an original Basic adventure listing in a book ... br />
    ad 2) See BASIC program added.
    [code]
    After a random number it will be
    (random =1)
    829456713 ...
    Dr BEEP Dr BEEP December 2002 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 …

    Do you need speed or just a random number.

    You can use the calculator routine in the rom like it is BASIC.

    Otherwise I have a RANDOM-routine from the machinecode book of William Tang in his Frogger game.
    Dr BEEP Dr BEEP September 2004 Development
  • Announce: Crap Game Competition 2004The comp.sys.sinclair Crap Game Competition 2004 is now officially open! :roll: [url="http://www.speccyspoilers.co.uk/cgc2004"]www.speccyspoilers.co…

    ... thought I could code. In Basic, obviously - nobody of that age ... the BASIC commands and what they did. And how to use random number ...
    The Mighty Dopethrone The Mighty Dopethrone September 2004 Games
  • New Compo IdeaI've had this idea and would like to know what do you think about it. I think that most of us here know how to code in BASIC. The problem with Specc…

    ... br />
    ====================

    * General BASIC tips
    --------------------

    * Place ... br />
    Controls error report number and normally has a value ... contains various flags controlling the Basic system and generally should ...
    na_th_an na_th_an April 2005 Development
  • 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 …

    The first random number that RND always generates if ... /> (I sounds like the orange BASIC User Manual!)

    Summary ...
    BloodBaz BloodBaz April 2005 Sinclair Basic
<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
basic 24.7K 39K

Related Threads

  • 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…
  • Switch from 128k BASIC to 48k BasicHello,<br /> <br /> Is there a way to start off running a program in 128k basic (so that you can use the ramdisk facilities) but then switch back dow…
  • (Basic) Sinclair BASIC mode for EmacsI saw this [URL=http://www.worldofspectrum.org/forums/showthread.php?t=14622]post[/URL] regarding a Sinclair BASIC editing mode along with some Fuse …
  • Help with Visual Basic 6.0 vs Visual Basic.netI have a program that auto generates VB.Net code..... I know VB.net syntax and am happy with the code generated.<br /> <br /> However, I have been as…
  • +3dos BASIC Headers - Char and Number ArraysHi.<br /> <br /> I'm almost ready to release the first beta of "3eExplorer" my utility for extracting files from a +3e HDD/CF image. It's actually g…
  • What did Spectrum BASIC lack (and was BBC BASIC so good?)Over the years, I've read in various multi-format magazines, that BBC BASIC was probably the best BASIC available on an 8-bit machine. I've never use…
  • 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…

Related Searches

  • random
  • number of spectrums manufactured
  • number of spectrums made
  • random number code
  • poke to change line number in basic
  • random number 32768
  • random number 32768 repeat
  • random number
  • basic line number
  • basic number
  • basic number representation
  • random number generator
  • random number generation
  • generate random number interface
  • machine code random number
  • max number lines basic
  • number lines basic
  • random basic
  • random number gen
  • max basic line number

Copyright © 2024 World of Spectrum