Lua
C++
Edit

Seed

This functions sets the seed for psuedorandom number calculation.

Syntax

Example

#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;
}
Copyright © 2024 Ultra Software.
All rights reserved.