This function returns a psuedorandom value within the specified range. If no range is specified, the result will be between 0 and 1.
Parameter | Description |
---|---|
minima | minimum value that can be returned |
maxima | maximum value that can be returned |
Returns a psuedorandom number.
#include "UltraEngine.h"
using namespace UltraEngine;
int main(int argc, const char* argv[])
{
Seed(Millisecs());
Print(Random());
Print(Random(10));
Print(Random(10, 20));
return 0;
}