99 個 Elm 問題/問題 24
外觀
給定一個隨機數生成器種子,從集合 1..N 中選擇 N 個不同的隨機數。
# # # 這是一個存根 # # #
Example in Elm:
import Html exposing (text)
import List
f : Int -> Int
-- your implementation goes here
main = text (toString (f 0))
結果
4
給定一個隨機數生成器種子,從集合 1..N 中選擇 N 個不同的隨機數。
# # # 這是一個存根 # # #
Example in Elm:
import Html exposing (text)
import List
f : Int -> Int
-- your implementation goes here
main = text (toString (f 0))
結果
4