Random Number Generator

Home Forums Multi-Edit User Created Macros Random Number Generator

This topic contains 2 replies, has 3 voices, and was last updated by  RonaldsMa 3 years, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2472

    HumanPotato
    Participant

    Hi Guys,

    Has anyone come up with some code for generating random numbers? I am no mathematician but the 55/1000’s of a second returned by system_timer seem to be a little too slow for me to use (I end up with a sequence of ascending numbers, not very useful.)

    Or is there something built into Cmac for this purpose that I can’t find?

    #8265

    deleyd
    Participant

    In Telnet.s[list:c7tznbnj][*:c7tznbnj]PseudoRandomInit() — initialize random number generator[/*:m:c7tznbnj][*:c7tznbnj]PseudoRandom() — return random number[/*:m:c7tznbnj][/list:u:c7tznbnj]

    First call PseudoRandomInit to initialize the random number generator. Then make calls to PseudoRandom to get random numbers.
    (Haven’t tried it myself.)

    #21827

    RonaldsMa
    Participant

    [b]Интересные игры[/b]:

    1) [b][url=http://vk.cc/5c88hn]Project Genom (Xsolla)[/url][/b]

    2) [b][url=http://goo.gl/UjRH89]Black Desert (Премиум-доступ)[/url][/b]

    3) [b][url=http://goo.gl/FWcj9t]Blood and Soul[/url][/b]

    4) [b][url=http://goo.gl/OlBvqh]Более 150 онлайн игр[/url][/b]

    5) [b][url=http://goo.gl/DHbwvj]Tera Online[/url][/b]

    6) [b][url=http://goo.gl/6htSO1]Black Desert Готов к битве?[/url][/b]

    7) [b][url=http://goo.gl/CkbGxT]Aion[/url][/b] или

    8) [b][url=http://goo.gl/WY6MCU]Star Conflict[/url][/b]

    9) [b][url=http://goo.gl/a715GL]Hex[/url][/b]

    10) [b][url=http://goo.gl/fUiq1g]Grand Prix Racing Online – Jogo Online[/url][/b]

    11) [b][url=http://goo.gl/aIbRLa]Ikariam[/url][/b]

    Продолжение следует….

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.