mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
498 B
20 lines
498 B
package main |
|
|
|
import ( |
|
"github.com/01-edu/z01" |
|
|
|
correct "./correct" |
|
) |
|
|
|
func main() { |
|
for i := 0; i < 30; i++ { |
|
value := z01.RandIntBetween(-1000000, 1000000) |
|
base := z01.RandIntBetween(2, 16) |
|
z01.Challenge("ItoaBaseProg", ItoaBase, correct.ItoaBase, value, base) |
|
} |
|
for i := 0; i < 5; i++ { |
|
base := z01.RandIntBetween(2, 16) |
|
z01.Challenge("ItoaBaseProg", ItoaBase, correct.ItoaBase, z01.MaxInt, base) |
|
z01.Challenge("ItoaBaseProg", ItoaBase, correct.ItoaBase, z01.MinInt, base) |
|
} |
|
}
|
|
|