|
ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
|
#include "../../ugbc.h"Go to the source code of this file.
Functions | |
| Variable * | random_value (Environment *_environment, VariableType _type) |
| Emit ASM code for = RANDOM. | |
| Variable * random_value | ( | Environment * | _environment, |
| VariableType | _type ) |
Emit ASM code for = RANDOM.
This function outputs a code suitable for calculating a random value, the range of which depends on the type of data passed as a parameter:
The random value is passed back into a temporary variable.
| _environment | Current calling environment |
| _type | Type of random number to generate |