Skip to main content

The Power of Pride Bundle 2026 — $10 PWYC Edition
On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

unknown function or routine 'rnd'

A topic by JavaJack created 4 days ago Views: 26 Replies: 4
Viewing posts 1 to 3
(1 edit)

Per docs:

RND() U8 Target specific pseudo-random byte.

Sadly, does not compile with 1.2:

unknown function or routine 'rnd'

(rand() works, though.)

LFSR_NEXT() does not compile either:

unknown function or routine 'LFSR_NEXT'
(+1)

sorry about that, it's a doc bug, the correct proc in crustyBASIC programs is RAND().  RND is a dialect thing, I'll update the docs, thanks for the report!

LFSR_NEXT etc are not fully implemented in 1.2.0, they are in 1.3.0 which is coming out later this week.     A metric ton of fixes, updates and 2 new targets.    :)

Can you reseed rand()?

(+1)

not currently as RAND() maps differently to all the targets.  I will put that on my TODO list.   LFSR_SEED/LFSR_NEXT/LFSR_RANGE in the next release will be a seed-able pseudo rng.