Created
September 2, 2020 07:59
-
-
Save ivangodfather/4ef5be8914f48df09b82ecb23fd2da90 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func randomNum() -> AnyPublisher<Int, Never> { | |
return AnyPublisher<Int, Never> { seed in | |
seed.success(Int.random(in: 1...10)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment