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.026s
<1234567…34>
  • 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
  • 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
  • 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 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
  • 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 using ROM content or ...
    Shiru Shiru December 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…

    [QUOTE=Shiru;320142] There is many ways how to generate random number[/QUOTE]

    implementation [url]http://map.tni.nl/sources/external/z80bits.html[/url]

    theory [url]http://en.wikipedia.org/wiki/Linear_congruential_generator[/url]
    Fikee Fikee December 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…

    ... is many ways how to generate random number[/QUOTE]

    [QUOTE=Fikee ...
    Patrik Rak Patrik Rak December 2008 Development
  • 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…

    ... is there a method to generate a random number between 1 and 'n ... 0 - (n - 1):

    * Generate random number [i]m[/i] in the ...
    Philip Kendall Philip Kendall December 2011 Development
  • 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…

    ... range 0 - n:

    * Generate random number [i]m[/i] in the ...
    Paddy Coleman Paddy Coleman December 2011 Development
  • 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…

    ... write a c++ program to generate 9 lines of 6 numbers ...
    BigBadMick BigBadMick April 2007 Chit chat
  • 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 /> ----------------------

    * Sinclair Interface II: Joystick 1 is mapped ... corresponding to the first line number) with 0 (see the ... />
    Controls error report number and normally has a value ... can POKE 23610 to generate an error to stop the ...
    na_th_an na_th_an April 2005 Development
  • Project: M.u.l.e.Wokani came up with a great idea about trying an open-development approach for spectrum games, and I thought why not try with a game I have under dev…

    ... only contains an exported interface to the rest of ... /> C's standard random number generator should generate numbers from 0 to ... we select two random number ranges to generate each outcome. ... C's random number generator rand() to generate uniformly distributed ...
    Alcoholics Anonymous Alcoholics Anonymous July 2007 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
  • 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…

    ... from ROM to get their random numbers, presumably because they want ...
    bigjon bigjon March 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…

    ... expert when it comes to random numbers. If I have the ... program and then proceed to generate random numbers from that seed I ... should get a pseudo random sequence - correct?

    However ...
    Paddy Coleman Paddy Coleman May 2011 Sinclair Basic
  • Monkey Island AdventureProgress on this game is going slow. There are two specific problems involved in converting this game to a text adventure format: 1) The pirate fig…

    ... especially can't generate random pirate fights with the random use of phrases ... and typing in the relevant number will take you to the ...
    zeropolis79 zeropolis79 May 2011 Sinclair Miscellaneous
  • 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 ... using 4 of them to generate a random number, the value of which ... that I always seem to generate the exact same result
    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 …

    ... .

    The interface between us was pretty clean ... everyone in sight. The interface used for character actions was ... I realized that the random number generator was producing the same ... actually pseudo-random. So Phil wrote a random number generator that ...
    jmvbok jmvbok March 2012 Games
  • 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…

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

    ... simply need to display a random number between 1 and 49.< ... have written generates a semmingly random number in this range but ... 10 and occasionally gives a number OVER 49!

    ...
    landorb landorb 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…

    ... I'm making a number-guessing game, and I ... write a line to generate the random number, then I have ... their answer against the random number I've generated? I ... INPUT "Can you guess the number?", a$

    number THEN PRINT "Correct!"", but ...
    GreenCard GreenCard February 2014 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 ... /> "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
  • ZEsarUX-7.1Hi! There’s a new stable version of ZEsarUX, version 7.1! The next 24th of September it will be 5 years old :) So this is a special anniversary…

    ... )
    Added setting --random-r-register to generate random value for R register ... use that register as a random value
    Added OSD Adventure ... can use every register, variable, number on any position of a ...
    chernandezba chernandezba September 2018 Emulators
  • 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 ... VIA beeper on 48k), a random number generator using ball bearing micro ... the site (already attached in Interface 1 in photos).

    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
  • 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…

    ... out, verify called numbers and generate large sized characters.
    < ... X=X-1 : REM decrease number of balls
    70 ... br /> After a random number it will be
    (random =3)
    ... br /> After a random number it will be
    (random =1)
    829456713 ...
    Dr BEEP Dr BEEP December 2002 Games
  • Cool BASIC tricks and tips!Following on from Dunny's excellent suggestion of a compendium of BASIC tips + tricks, I believe it would be better to have a topic dedicated to it. …

    ... :

    A function to generate random numbers between x and y ... );

    This will generate a random number between 10 and 100 (inclusive ...
    Arjun Arjun 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
generate 2.4K 2.8K
random 6.6K 8.2K
number 18.5K 25.1K
interface 12.9K 20K

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 …
  • Interface Zero joystick interfaceHello<br /> <br /> I just built a joystick interface with instructions I found from Your Sinclair ( [url="http://www.users.globalnet.co.uk/~jg27paw4/…
  • 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…
  • Wanted Microdrive(2) interface 1 and interface 2Being new to this i am after a microdrive and carts (possibly2) and an interface 1+2 boxed prefered but happy with either.<br /> <br /> <br /> <br />…
  • 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…
  • 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…
  • Centronics Interface / Interface 1Hi<br /> <br /> I'm after a Centronics Interface and Interface 1 (hence the thread title :razz:)<br /> <br /> Just got a Rotronics Wafadrive, and i'm…

Related Searches

  • random
  • number of spectrums manufactured
  • number of spectrums made
  • interface 1bis
  • serial number
  • ps2 keyboard interface
  • kempston interface circuit
  • interface 1 voltage
  • interface 1bis lan
  • random assembly
  • random number code
  • input number
  • random number basic
  • random number 32768
  • random number 32768 repeat
  • random number
  • random number generator
  • random number generation
  • machine code random number
  • random number gen

Copyright © 2024 World of Spectrum