タグ

ブックマーク / rosettacode.org (1)

  • Pick random element - Rosetta Code

    Pick random element You are encouraged to solve this task according to the task description, using any language you may know. 8086 Assembly The easiest way to pick a random element from a list is to use a random number generator's output as an index into an array. Care must be taken not to index out of bounds. If the array's size is a power of 2, then index = RNG output & (array size - 1) will ens

    Pick random element - Rosetta Code
    cohalz
    cohalz 2015/05/24
    えっなにこれは
  • 1