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.011s
<1…45678910…34>
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    ... (2)=142
    50 POKE 23672,0: POKE 23673,0: LET ...
    WibbleBibble WibbleBibble August 2012 Sinclair Basic
  • WibbleBibble's Basic threadHi in an attempt to keep my questions from spamming the forum. I think its better to put them all in one place. Thanks everyone so far, I feel I am …

    ... (2)=142
    50 POKE 23672,0: POKE 23673,0: LET ...
    WibbleBibble WibbleBibble August 2012 Sinclair Basic
  • 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…

    ... to make a table of random numbers beforehand (if they are called ...
    R-Tape R-Tape September 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…

    ... , there are times when weighted random numbers are very useful.
    jonathan jonathan September 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…

    ... , though - if you're generating random numbers in the same range each ... due to the way the numbers are rounded down. If your ... mechanism you use to map numbers 0-255 to the range ... means that some of your numbers are 20% less likely to ...
    gasman gasman September 2012 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…

    ... games usually need to generate random numbers frequently...
    Einar Saukas Einar Saukas September 2012 Development
  • RANDOMIZE USRI always thought that this particular basic command was not intuitive! If I understand correctly is means run the code from the memory address, is t…

    ... randomize implies the RAND function (random numbers), what should have it been ... BC register pair (Used by Random number generator), but you don ...
    LCD LCD February 2013 Sinclair Basic
  • RANDOMIZE USRI always thought that this particular basic command was not intuitive! If I understand correctly is means run the code from the memory address, is t…

    ... randomize implies the RAND function (random numbers), what should have it been ... />
    You can set the random generator with seed by giving ...
    Dr BEEP Dr BEEP February 2013 Sinclair Basic
  • Drawing ovals...Hi Folks, Is it possible to draw an oval using the Sinclar BASIC DRAW commend and the 3rd parameter? I have been trying (and failing). Many thanks…

    ... DEF FN t()=(65536*PEEK 23674+256*PEEK 23673+PEEK 23672)/50:
    DEF ...
    Battle Bunny Battle Bunny March 2013 Sinclair Basic
  • Math problemI'm trying to solve/model a science problem, and I thought a simple BASIC program might help me, but I struggle to write it. Goal: Given a length of…

    [QUOTE=48K;715459]the only way I can see to calculate the cut fragment lengths requires to first reorder the random numbers first.[/QUOTE]

    You don't need to reorder them, just to find the minimum of them.
    Einar Saukas Einar Saukas August 2013 Sinclair Basic
  • MC LPRINT 23681Having problems with this routine to print large on the screen using LPRINT, it works ok in BASIC, but cant seem to get it to loop for some reason in…

    ... the colours are not very random either!
    [/QUOTE]
    ...
    The not-very-random colours probably comes from masking ... my head, some choices for random numbers:

    1) ... /> cols: ld hl,22816 ;random colours
    ld b,159 ...
    u6c87 u6c87 September 2013 Development
  • Problem With POINT StatementHello everyone this is my first ever post, So firstly i'd like to say hello to everyone and secondly thank you to the admins for such a great site, …

    ... : DEF FN p(a)=PEEK a+256*PEEK (a+1)

    Battle Bunny Battle Bunny September 2013 Sinclair Basic
  • display file addressing; screen slicingWhile working on this Compendium I'm updating or rewriting a lot of stuff. One thing I eventually came to appreciate was the simple & clever way in w…

    ... )*32+c:
    LET w=PEEK hl: LET p=8-x ...
    Battle Bunny Battle Bunny October 2013 Sinclair Basic
  • FZX Driver for z88dkAn fzx library for z88dk can be downloaded [URL="https://drive.google.com/file/d/0B6XhJJ33xpOWM2hWNjAxMVkxaEk/edit?usp=sharing"]here[/URL]. The libr…

    ... variable
    I would just PEEK the system variable but it ... ]
    extern unsigned int FRAMES(23672);
    [/code]

    Now ... programs usually do something like "PEEK 23672+256*PEEK 23673" to read FRAMES ...
    Alcoholics Anonymous Alcoholics Anonymous November 2013 Announcements
  • Documentation for SP1 for Z88DK?(I was going to post in [URL="http://www.worldofspectrum.org/forums/showthread.php?t=11729"]the other thread[/URL], so if a mod thinks this should go…

    ... () worked too - for the few random numbers I tried it with, at ...
    szeliga szeliga December 2013 Development
  • Writing faster BASICIn terms of structuring BASIC programs, what are the best ways allocate variables, functions, arrays? Any tips. I remember INPUT mag had some suggest…

    I forgot to mention GOTOs/GOSUBs. Try to organise routines such that those with the most internal GOTOs,and those referenced most frequently via GOSUBs, are placed near the start of the program.

    Also, it's much quicker to find a subroutine ...
    Battle Bunny Battle Bunny December 2013 Sinclair Basic
  • 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 …

    ... it only generates 8-bit numbers (again a plus if that ... you want!). If you want random numbers larger than 8-bit you ... degrades the quality of the random numbers generated.

    I ... RAND_MAX = 32767
    ;
    ; This random number generator is a 32 ...
    Alcoholics Anonymous Alcoholics Anonymous February 2014 Development
  • From RAM to dim v$() "video buffer" SPEED UP!Hi! This question is related to "quick RAM copy using LET in Basic" ([url]http://www.worldofspectrum.org/forums/showthread.php?t=44296[/url]). Wel…

    ... />
    80 LET dw=(PEEK 23627+256*PEEK 23628)+6
    ...
    270 LET tick1=(65536*PEEK 23674+256*PEEK 23673+PEEK 23672)/50
    280 ... 300 LET d=PEEK x
    310 IF PEEK ps=d THEN ... /> 390 LET tick2=(65536*PEEK 23674+256*PEEK 23673+PEEK 23672)/50[/CODE]
    Hark0 Hark0 March 2014 Sinclair Basic
  • From RAM to dim v$() "video buffer" SPEED UP!Hi! This question is related to "quick RAM copy using LET in Basic" ([url]http://www.worldofspectrum.org/forums/showthread.php?t=44296[/url]). Wel…

    ... /> 35 LET tick1=(65536*PEEK 23674+256*PEEK 23673+PEEK 23672)/50
    40 ... eaddr: LET o$=o$+t$(PEEK (n)): LET x=x+1 ... /> 75 LET tick2=(65536*PEEK 23674+256*PEEK 23673+PEEK 23672)/50
    80 ...
    na_th_an na_th_an March 2014 Sinclair Basic
  • From RAM to dim v$() "video buffer" SPEED UP!Hi! This question is related to "quick RAM copy using LET in Basic" ([url]http://www.worldofspectrum.org/forums/showthread.php?t=44296[/url]). Wel…

    Here's a similar idea. Line 35 times at 4.72 seconds in BASin but 5.01 seconds in ZXSpin. Just load your tile file directly into t$().
    [code]
    10 GO SUB 1010

    35 LET v$="": [strike]LET v=1:[/strike] FOR t=1 TO 145 STEP 16: LET u= ...
    Battle Bunny Battle Bunny March 2014 Sinclair Basic
  • From RAM to dim v$() "video buffer" SPEED UP!Hi! This question is related to "quick RAM copy using LET in Basic" ([url]http://www.worldofspectrum.org/forums/showthread.php?t=44296[/url]). Wel…

    ... /> 35 LET tick1=(65536*PEEK 23674+256*PEEK 23673+PEEK 23672)/50
    40 ... eaddr: LET o$=o$+t$(PEEK (n)): LET x=x+1 ... /> 75 LET tick2=(65536*PEEK 23674+256*PEEK 23673+PEEK 23672)/50
    80 ...
    Hark0 Hark0 March 2014 Sinclair Basic
  • From RAM to dim v$() "video buffer" SPEED UP!Hi! This question is related to "quick RAM copy using LET in Basic" ([url]http://www.worldofspectrum.org/forums/showthread.php?t=44296[/url]). Wel…

    [QUOTE=Battle Bunny;756801]Here's a similar idea. Line 35 times at 4.72 seconds in BASin but 5.01 seconds in ZXSpin. Just load your tile file directly into t$().
    [code]
    10 GO SUB 1010

    35 LET v$="": LET v=1: FOR t=1 TO 145 STEP ...
    Hark0 Hark0 March 2014 Sinclair Basic
  • Sorting BusinessThis is a little bit different from the usual game-related fare but I know there are a few people here who like this sort of thing. This is about so…

    ... />
    ps. I hope your random numbers are the same for each ...
    seedy1812 seedy1812 May 2014 Development
  • Sorting BusinessThis is a little bit different from the usual game-related fare but I know there are a few people here who like this sort of thing. This is about so…

    ... /> ps. I hope your random numbers are the same for each ... resides uses a different random number generator so ... a different sequence of random numbers. That's why I ... set was large -- 5000 numbers, so that differences in ... a large set of numbers will still give ...
    Alcoholics Anonymous Alcoholics Anonymous May 2014 Development
  • Sorting BusinessThis is a little bit different from the usual game-related fare but I know there are a few people here who like this sort of thing. This is about so…

    ... of finding the actual median, random pivot selection might be the ... -recursive" qsort. Sorting of 5k random numbers only uses about 56 bytes ...
    Alcoholics Anonymous Alcoholics Anonymous May 2014 Development
  • Sorting BusinessThis is a little bit different from the usual game-related fare but I know there are a few people here who like this sort of thing. This is about so…

    ... partitions. For sorting 5000 random numbers and using the middle ... br />
    5000 Random numbers
    Random pivot: 53,737,251 ...
    5000 numbers in reverse order
    Random pivot: 52,298 ...
    5000 equal numbers
    Random pivot: 7,175,390,775 ...
    Alcoholics Anonymous Alcoholics Anonymous May 2014 Development
<1…45678910…34>

Latest Posts

  • Happy 40th Birthday to the Amstrad CPC464!
    dmsmith on 12:41AM
  • i am currently listening to........
    dmsmith on April 15
  • I am currently watching.....
    zx1 on April 15
  • Fixed Speccy Software. And which games remained unfixed?
    harriusherbartio on April 15
  • Cooperative Games.
    harriusherbartio on April 15
  • Celebrity deaths...
    mel the bell on April 15
  • Minor British Sports that did become games on the ZX Spectrum
    dm_boozefreek on April 15
  • Elusive Strategy Games done by the Smaller or less Prolific Software Houses.
    harriusherbartio on April 15
  • Inside No.9 favourite episodes
    Maroc's Other Projection on April 15
  • How we became brainwashed by social media
    Scottie_uk on April 15

HitBox

Word Docs Hits
peek 1.9K 4.4K
23672 204 359
random 6.6K 8.2K
numbers 5.6K 7.2K

Related Threads

  • 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. …
  • Pseudo random numbersHi everybody,<br /> 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 …
  • 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…
  • Req' Help with Random numbersHello all, <br /> im new to the forum, i hope im putting this in the right place ...<br /> <br /> I would like to ask a question in the hope someone …
  • Random numbers...Hi Folks,<br /> <br /> I am not an expert when it comes to random numbers. If I have the RANDOMIZE statement the beginning of a program and then pro…
  • Help with random numbers......Hi all, wonder if anyone can help me... sort of a novice here ...<br /> <br /> I have been trying to write a simple ish basic program to compare rand…
  • 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…
  • Wanted: Monty Mole and the random crushersA fairly good rip off of Jet Set Willy, this game suffers from one main weakness- the randomly falling crushers. You can be the best player in the wo…
  • Random Smiley FacesAs promised, here's the Syntax:<br /> <br /> ;Startup<br /> <br /> 5 CLS<br /> 7 PAPER 0: BORDER 0<br /> <br /> ;Graphics<br /> <br /> 10 FOR n=0 to …
  • Spectrum 2003 News and Info Special at PEEK N' POKE[url="http://peeknpoke.emuunlim.com/spectrum2003/pnpspectrumnews2003index.html"]http://peeknpoke.emuunlim.com/spectrum2003/pnpspectrumnews2003index.h…

Related Searches

  • random
  • 23672
  • rom peek 128k pentagon
  • rom peek 128k pentagon 004c
  • identify pentagon 48k 128k rom peek
  • peek rom identify model
  • peek rom detect model 48k 128k 3 pentagon
  • serial numbers
  • 2 numbers in address
  • 2 numbers in address debugger
  • random assembly
  • spectaculator yellow numbers
  • harlequin random numbers
  • random numbers
  • peek 23672
  • peek 23672 timer
  • peek random ivanbasic
  • peek 23672 countdown
  • peek 23673 256 23672 50
  • rnd based on peek 23672

Copyright © 2024 World of Spectrum