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.015s
<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 became ... the C version of the generator with diehard, and it seems ...
    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
  • 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
  • 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 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
  • 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
  • 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 ... /> "This is the 32-bit random number generator routine I used in Batman ... 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
  • 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
  • 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
  • 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…

    ... /> Here is a simple Random number generator for every number between 0-255
    call random ; fetch RND number
    add a,"0 ... /> ld a,(hl) ; fetch RND number
    marge sub c ; calculate ...
    Dr BEEP Dr BEEP August 2005 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…

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

    ... page I used a random number generator to pick a number between 1 to ...
    Scottie_uk Scottie_uk July 2009 Chit chat
  • 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 failed ...
    bohusk bohusk January 2011 Chit chat
  • 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 …

    ... sequence; and the actions had random components too, so for example ... characters, I realized that the random number generator was producing the same numbers ... -random. So Phil wrote a random number generator that was truly random, not just pseudo-random ...
    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 three ... REMs removed and the line number renumbered to 1,1. The ...
    Paddy Coleman Paddy Coleman March 2012 Sinclair Basic
  • C.G.D - Classic Game Designer[b]UPDATE: August 07, 2013 AN UPDATED VERSION OF CGD IS NOW AVAILABLE, DETAILS HERE: [url]http://www.worldofspectrum.org/forums/showpost.php?p=7155…

    ... Rak's superb XOR Shift random number generator. Thanks to Einar Saukas for ...
    R-Tape R-Tape July 2013 Brand new software
  • 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 …

    ... was written, resulting in random blank pixels and white ... is the random fill test, where a random number generator is loaded ... against the output of the random number generator. In a healthy machine, ... soak test where the random number generator is seeded with a ...
    balford balford September 2014 Hardware
  • 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 switches ...
    matalog matalog September 2019 Hardware
  • why am i getting b integer out of range in this code?ive tried running this in spin but thats what i get [code]main org 40000; ; We want a black screen. ld a,71 ; white ink (7) on black paper (0…

    ... /> rst 16
    call random ; get a 'random' number.
    and 15 ; want ... /> rst 16
    call random ; want another pseudo-random number.
    and 31 ... .
    ret
    ; Simple pseudo-random number generator.
    ; Steps a pointer through ...
    digital digital June 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…

    ... to the original programmer - the random number generator was set by the system ...
    The Mighty Dopethrone The Mighty Dopethrone September 2020 Sinclair Basic
  • C, Z88DK and the Sprite Pack Library I wrote a short demo that shows a taste of what can be done from C on the Spectrum: [url="http://justme895.tripod.com/zqa/pacmen.zip"]http://justme…

    ... mode

    + Sprites: any number, any size placed on screen ... />
    + Miscellaneous functions including a random number generator, multiplications, a pattern flood filler ...
    Alcoholics Anonymous Alcoholics Anonymous September 2003 Development
  • Pocket Clive - 2 QuestionsHello, I've just started using Pocket Clive on my iPaq pocket PC, excellent emulator BTW. 1. I have just wrote a small BASIC program to randomly pi…

    ... the 'wonkiness' of the speccy random number generator, in conjunction with the 'r ...
    Digital Prawn Digital Prawn January 2006 Emulators
  • MGT Plus DHi to all and thanks for reading this. After years I've taken my Spectrum and wanted to use the MGT Plus D interface (http://www.worldofspectrum.org/…

    ... formatted on an old Amstrad random number generator (PC1512 with an external 3 ...
    DEATH DEATH March 2006 Hardware
  • 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…

    ... ensure that the exact same generator algorithm is used, which ... set the seed used in random number generation (I think). Hence ... best way to initialise a random number generator is to base the ... will in theory create "true" random number sequences - it ain't ...
    icabod icabod April 2006 Sinclair Miscellaneous
  • ANN: SP1 for Z88DK (aka splib3, Sprite Pack v3.0)Well it's finally arrived, after a month of "a few days from now" release deadlines. SP1 is the lastest version of splib, a flicker-free software sp…

    ... of the miscellany - pattern fill, random number generator, etc.

    Almost all ...
    Alcoholics Anonymous Alcoholics Anonymous May 2006 Development
  • Sprite adviceHello. So, I'm slowly getting to grips with Z80 assembly - currently equal parts frustration and enjoyment. Now looking for some advice to help shift…

    ... more questions...

    1/ Random number generator: I've started using a ... r command to grab a number from the memory refresh ... numbers are obviously not very random at all.

    ... a quick way of generating random numbers? I cannot decipher what ...
    48K 48K May 2006 Development
  • Sprite adviceHello. So, I'm slowly getting to grips with Z80 assembly - currently equal parts frustration and enjoyment. Now looking for some advice to help shift…

    ... =48K]1/ Random number generator: I've ... not a very good random number generator. Here's the one ... simple 16-bit random number generators. I originally ...
    ; 16-bit seed random generator
    ; ----------------------------
    ; Faster ...
    Alcoholics Anonymous Alcoholics Anonymous May 2006 Development
<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
generator 1.3K 1.5K

Related Threads

  • 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]…
  • 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 …
  • 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…
  • 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.<br /> <br /> Anybody got any idea where I'm going wro…
  • 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…
  • 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…

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
  • random generator
  • random number basic
  • z80 random generator
  • random number 32768
  • random number 32768 repeat
  • random number
  • random number generation
  • generate random number interface
  • machine code random number
  • random number gen

Copyright © 2024 World of Spectrum